How to make a pipe in c++ -


i'm looking @ code c++ program pipes contents of file more. don't quite understand it, wondering if write pseudocode c++ program pipes something else? why necessary use fork?

create pipe fork process if child:   connect pipe stdin   exec more write pipe 

you need fork() can replace stdin of child before calling, , don't wait process before continuing.


Comments