[LC++]how to execute/read the output of another program ?
Jan Pfeifer
pfjan at yahoo.com.br
Thu Nov 27 20:34:02 UTC 2003
hi all,
i'm trying to do something like:
string str = `some_program`;
where the backticks (`) would mean the same as in shell/php/perl.
i used to use "ipfstream" for this, but apparently its not part of the
recent g++ (3.3) distribuition -- or at least is seems deprecated.
is there another nice C++ library to do this kind of pipes ?
so far, everything I saw pointed me to the use of C's "popen", or even
using directly the "pipe" system call.
thanks in advance for any help!
:)
jan
More information about the tuxCPProgramming
mailing list