CFile::Write

string XMLCheck = "hello";

CFile file;

CString FileName=_T(".\\myFile.txt");
file.Open(FileName, CFile::modeCreate|CFile::modeWrite);
char pbuf[100] = "hello";;

file.Write( pbuf, 100 );


CFile file2;
CString FileName2 =_T(".\\myFile2.txt");
file2.Open(FileName2, CFile::modeCreate|CFile::modeWrite);
const char *pbuf2 = XMLCheck.data();
file2.Write( pbuf2, strlen(pbuf));

你可能感兴趣的:(CFile::Write)