摘要: 1,是否存在File.Exists("文件完整路径"); 2,新建并写入 继承IDispose接口的可以使用using来自动释放,不用Close和Dispose Using(StreamWrite sw=File.CreateText("文件完整路径")) { sw.Write("写入内容"); } 阅读全文
posted @ 2021-11-16 13:19 浩鑫 阅读(30) 评论(0) 推荐(0)