之前的格式
保存后的格式
写.xml文件代码如下:
CFile file;
CString FileName=_T("idx_file1.xml");
file.Open(FileName,CFile::modeCreate|CFile::modeWrite);
file.SeekToBegin();
file.Write((unsigned char *)(strText.GetBuffer(0)),strText.GetLength());//CString strText
file.Flush();
file.Close();