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 <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9