How can I clear the content of a text file using C# ?
Another short version:
System.IO.File.WriteAllBytes(path, new byte[0]);