![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
XML
HRL煜
持之以恒
展开
-
把文件写入xml和更新xml的数据
/// /// 生成安全模式xml并放进文件夹中 /// /// /// public string WriteXml(string regionIds) { string isResult ="{\"locked\":false,\"safe\":\"0\"}";原创 2016-09-01 15:21:15 · 1884 阅读 · 0 评论 -
读取xml文件
DirectoryInfo fileReader = newDirectoryInfo(TitleAddress);//遍历指定文件夹下的文件 //1、创建XmlDocument对象 XmlDocument xmlDoc = new XmlDocument(); //2、加载源文件 foreach (F原创 2016-09-01 15:22:24 · 275 阅读 · 0 评论