Convert from FILE* to std::fstream (or alternative to popen)

popen() allows to communicate the process trough a pipe. The problem is that it returns a FILE*
So what could I do to work with fstreams instead?

I guess that the data could be read in binary format (with a header that tells the number of bytes) and then pass that to the constructor of a stringstream (simile with write)

not an actual program yet, just having fun
Last edited on
This space was intentionally left blank
I will regret this. Bump
Topic archived. No new replies allowed.