I\'m relatively new to C# but here goes:
I am developing a remote file service client/server console application in C# which is supposed to exchange messages using
Whenever you use StreamWriter you need to Flush() the contents of the stream. I'll quote MSDN as the reason becomes quite clear:
StreamWriter
Clears all buffers for the current writer and causes any buffered data to be written to the underlying stream.
You can call it quite simply like:
wr.flush();