If mode is ios::in, standard output from the program is sent to a pipe; you can read from the pipe by reading from the procbuf. This is similar to popen(command, "r").
If mode is ios::out, output written to the procbuf is written to a pipe; the program is set up to read its standard input from (the other end of) the pipe. This is similar to popen(command, "w").
The procbuf must start out in the closed state. Returns *this on success, and NULL on failure.
procbuf::procbuf (const
char * command, int mode)
Constructor
procbuf*
procbuf::close ()
Method
procbuf::~procbuf ()
Destructor