On Wednesday, 23 July 2014 at 15:35:59 UTC, Chris wrote:
The C++ code does this:

size_t fwrite ( const void * ptr, size_t size, size_t count, FILE * stream );
// stream is stdout

and text appears in the console (a string).

I don't how to grab the text that is written to console. I might have to redirect it from within the C++ code.

I've created simple example (for Linux) - https://bitbucket.org/FreeSlave/redirect-example/src
It works as expected. Nothing writes to console, but to file.

Reply via email to