Is it possible to redirect the standard input for an external application?
Something like:
ifstream in (...);
std::streambufx oldbuf = cin.rdbuf(in.rd buf());
system(...);
cin.rdbuf(oldbu f);
The proces must run another program where the input for this external
program is allready present in memory of the original proces.
Gerrit
Something like:
ifstream in (...);
std::streambufx oldbuf = cin.rdbuf(in.rd buf());
system(...);
cin.rdbuf(oldbu f);
The proces must run another program where the input for this external
program is allready present in memory of the original proces.
Gerrit
Comment