System.IO.File.WriteAllText(@"c:\test.txt", string.Empty);
c#控制台将txt文本内容进行清空
最新推荐文章于 2023-06-07 23:25:29 发布
System.IO.File.WriteAllText(@"c:\test.txt", string.Empty);