string path = @"record\test01.txt";
XmlDocument xmldocument = new XmlDocument();
xmldocument.Load(path);
对于固定路径的读取,可以按照上面的代码来,
如果txt文档的名字是动态的,
txt文档的名字是 str+".txt",str是随着条件变化的,这时候这个路径该怎么写?
string path = @"record\test01.txt";
XmlDocument xmldocument = new XmlDocument();
xmldocument.Load(path);
对于固定路径的读取,可以按照上面的代码来,
如果txt文档的名字是动态的,
txt文档的名字是 str+".txt",str是随着条件变化的,这时候这个路径该怎么写?
string path = @"record\"+str+".txt";