追加文本文件

CFile MyFile("c://test.txt",CFile::modeReadWrite|CFile::modeNoTruncate);
MyFile.SeekToEnd();

CString text1="121432543543543543";
MyFile.Write(text1,text1.GetLength());
MyFile.Close();

你可能感兴趣的:(c)