你的位置:首页 > 软件开发 > ASP.net > C# 遍历XML文件,添加,更新,删除节点

C# 遍历XML文件,添加,更新,删除节点

发布时间:2015-04-07 15:00:22
一,将方法1,最简单方式 1 private void ReadFile() 2 3 { 4 5     string path = Application.StartupPath + @"/bookstore."; 6 7 by ...

一,将

方法1,最简单方式

 1 private void ReadFile()     2  3  {  4  5     get='_blank'>string path = Application.StartupPath + @"/bookstore."; 6  7       byte[] myByte; 8  9       //File.OpenRead(path);10 11       myByte = File.ReadAllBytes(path);12 13       this.textBox1.Text = string.Empty; 14 15       //this.textBox1.Text = new UnicodeEncoding().GetString(myByte);16 17       this.textBox1.Text = Encoding.UTF8.GetString(myByte);     18 19 }

原标题:C# 遍历XML文件,添加,更新,删除节点

关键词:C#

C#
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录