#2
魔法软糖2022-08-21 21:16
|
string path = (".\\pa\\1\\PasMessage.dat");
string[] linesD = File.ReadAllLines(path, Encoding.GetEncoding("GB2312"));
Array.Resize(ref linesD, linesD.Length - 1);
File.WriteAllLines(path, linesD, Encoding.GetEncoding("GB2312"));
string[] linesD = File.ReadAllLines(path, Encoding.GetEncoding("GB2312"));
Array.Resize(ref linesD, linesD.Length - 1);
File.WriteAllLines(path, linesD, Encoding.GetEncoding("GB2312"));
只有本站会员才能查看附件,请 登录
只有本站会员才能查看附件,请 登录
只有本站会员才能查看附件,请 登录
删除后 还是有个空行。
请问怎么去掉呢?