SyntaxFix
Write A Post
Hire A Developer
Questions
When you start StreamWriter it's override the text was there before. You can use append property like so:
TextWriter t = new StreamWriter(path, true);