#include<iostream>#include<fstream>#include<cassert>usingnamespacestd;intmain(intargc,char**argv){if(argc!=2){cerr<<"Pass fifo name as argument."<<endl;return1;}ifstreamfifo(argv[1]);assert(fifo.good());while(!!fifo)cout<<(char)fifo.get()<<flush;return0;}