![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
kfei2001
这个作者很懒,什么都没留下…
展开
-
C# 将数据保存进xml文件
XmlDocument xml; string path=Application.StartupPath + "\\功能测试参数.xml"; if(System.IO.File.Exists(path)){ xml = new XmlDocument(); doc.Load(path); //加载XML文档 } else { xml = new XmlDocument()转载 2017-10-04 22:43:00 · 2807 阅读 · 0 评论 -
c#怎么把textbox中的内容保存到txt
1 2 3 4 5 string path = "D:\\log.txt"; using (StreamWriter sw = new StreamWriter(path, true)) { sw.Write("xxxxxxxxxx");转载 2017-10-11 15:33:54 · 11830 阅读 · 1 评论