使用:System.IO.File.WriteAllText(@"c:\test.txt", string.Empty);
System.IO.File.WriteAllText(@"c:\test.txt", string.Empty);