c# 生成txt文档,删除全部内容,txt文档的大小仍为1KB,我采用的方法如下:
Stream Writer rw = new StreamWriter(Path, false, System.Text.Encoding.GetEncoding("UTF-8"));
String content = "[标题行一]='上海金融大学'" + "\r\n" + "'工号','姓名','院系'";
rw.WriteLine(content);
rw.Close();
希望哪位大虾能帮我解决这个问题。
Stream Writer rw = new StreamWriter(Path, false, System.Text.Encoding.GetEncoding("UTF-8"));
String content = "[标题行一]='上海金融大学'" + "\r\n" + "'工号','姓名','院系'";
rw.WriteLine(content);
rw.Close();
希望哪位大虾能帮我解决这个问题。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货