redirect std out to a string?

Steven Schveighoffer schveiguy at gmail.com
Thu May 21 15:12:16 UTC 2020


On 5/21/20 12:29 AM, Kaitlyn Emmons wrote:
> is there a way to redirect std out to a string or a buffer without using 
> a temp file?

D's I/O is dependent on C's FILE * API, so if you can make that write to 
a string, then you could do it in D.

I don't think there's a way to do it in C. So likely the answer is no.

-Steve


More information about the Digitalmars-d-learn mailing list