C# StreamReader.EndOfStream produces IOException
- by Ziplin
I'm working on an application that accepts TCP connections and reads in data until an </File> marker is read and then writes that data to the filesystem. I don't want to disconnect, I want to let the client sending the data to do that so they can send multiple files in one connection.
I'm using the StreamReader.EndOfStream around my outter…