How can I clear the content of a text file using C# ?
File.WriteAllText(path, String.Empty);
Alternatively,
File.Create(path).Close();
548k questions
547k answers
4 comments
86.3k users