XML文件修改
CDomXmlDocument doc("units");
ifstream file("g:/1.xml");
istringstream istring;
for(int i=0; i<40; ++i)
file.rdbuf()->stossc();
file>>doc;
file.close();
ofstream file1("g:/file4.xml",ios::binary);
file1<<"<?xml version=\"1.0\" encoding=\"gb2312\"?>\n";
file1.close();
file1.open("g:/file4.xml",ios::binary|ios.app);
file1<<doc;
file1.close();
---------------------------------------------------
Author: Skyman (吴俊)
版权所有,未经允许,不得转载
---------------------------------------------------
Author: Skyman (吴俊)
版权所有,未经允许,不得转载
---------------------------------------------------