Does STDIN/STDOUT flush data all at once or character by character?

Posted by ryeguy on Stack Overflow See other posts from Stack Overflow or by ryeguy
Published on 2010-05-09T03:50:31Z Indexed on 2010/05/09 3:58 UTC
Read the original article Hit count: 213

Filed under:
|

I'm using C# to read another program's STDOUT. If I do this:

StreamReader reader = process.StandardOutput;
reader.ReadToEnd();

Is it guaranteed to get the last thing flushed out to the program's STDOUT in its entirety? Or is kind of like TCP where I'd have to have a message terminator or length header?

© Stack Overflow or respective owner

Related posts about stdout

Related posts about c#