Grabing C(++) stdout
    Martijn Pot via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Jul 23 09:34:51 PDT 2014
    
    
  
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.
If it can be done offline, I think you can redirect the console 
output to a file.
    
    
More information about the Digitalmars-d-learn
mailing list