var lines = System.IO.File.ReadAllLines(path);
System.IO.File.WriteAllLines(path, lines.Skip(1).ToArray());
C# 删除 文件 里面的第一行数据
最新推荐文章于 2024-07-31 17:16:21 发布
var lines = System.IO.File.ReadAllLines(path);
System.IO.File.WriteAllLines(path, lines.Skip(1).ToArray());