5 Jul
2003
5 Jul
'03
17:32
I have an application where I am using popen:
FILE *popen(const char *command, const char *type);
In a previous contract, we had a way to convert FILE * to fstream
(instream or ostream). I prefer that my application be as pure C++ as
possible. In a quick search, I have not found a safe way to do it.
As an alternative, I could design my own class with fork()/exec() and
pipes, but it's not that important since I can easily use popen(), and
the other C stdio functions from C++.
--
Jerry Feldman