回复 1# 的帖子
存文件:
CStatioFile file;
file.Open("111.txt",CFile::modeWrite|CFile::modeCreate)
file.WriteString("aaaaaaaaaaaaaaaa\n");
file.WriteString("BBBBBBBBBBBB\n");
file.WriteString("CCCCCCCCCCCC\n");
file.Close();
相应的读取为
CStatioFile file;
file.Open("111.txt",CFile::modeRead)
CString ss;
while(file.ReadString(ss))
AfxMesssageBox(ss);file.Close();