[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LC++]how to execute/read the output of another program ?



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