SyntaxFix
Write A Post
Hire A Developer
Questions
Use FileMode.Truncate everytime you create the file. Also place the File.Create inside a try catch.
FileMode.Truncate
File.Create
try
catch