SyntaxFix
Write A Post
Hire A Developer
Questions
When the using() for your StreamReader is ending, it's disposing the object and closing the stream, which your StreamWriter is still trying to use.
using()
StreamReader
StreamWriter