摘要: 从文件流读XMLstring urlPath = url; DataSet ds = new DataSet(); DataTable dt = new DataTable(); try { using (FileStream fs = new FileStream(url, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { ds.ReadXml(fs); fs.Close(); dt = ds.Tables["Agents"]; return dt; } }catch { return dt; } 阅读全文
posted @ 2011-02-22 15:55 老皆知 阅读(198) 评论(0) 推荐(0) 编辑