How can I clear the content of a text file using C# ?
File.WriteAllText(path, String.Empty);
Alternatively,
File.Create(path).Close();
1.4m articles
1.4m replys
5 comments
57.0k users