当前位置: 代码迷 >> Windows Mobile >> :C#读取xml文件,出现未处理 System.IO.IOException xml
  详细解决方案

:C#读取xml文件,出现未处理 System.IO.IOException xml

热度:108   发布时间:2016-04-25 07:47:41.0
求助:C#读取xml文件,出现未处理 System.IO.IOException xml
菜鸟求助,分不多,见谅
如下代码,一直提示出现System.IO.IOException,请问该如何处理,抓狂中,拜托诸位
XmlDocument   xmlDoc   =   new   XmlDocument();
StreamReader   xmlFile   =   new   StreamReader(@ "D:\\ElePatrol\\PatrolType.xml ");
xmlDoc.Load(xmlFile);
xmlFile.Close();


------解决方案--------------------
StreamReader xmlFile = new StreamReader(@ "D:\\ElePatrol\\PatrolType.xml ");

你那个@ 是什么意思啊?????

@ 后面怎么还那么写啊!!
StreamReader xmlFile = new StreamReader(@ "D:\ElePatrol\PatrolType.xml ");
  相关解决方案