返回> 网站首页 

写文件(内容追加)

yoours2007-04-20 19:47:41 阅读 1128

简介一边听听音乐,一边写写文章。

CString str; 
str.Format("%s\r\n",szMessage); 
CFile f("d:\\rr.txt",CFile::modeWrite|CFile::modeCreate|CFile::modeNoTruncate); 
f.SeekToEnd();//定位到文件尾,不覆盖原来的东西 
f.Write(str.GetBuffer(),str.GetLength()); 
f.Close() 
微信小程序扫码登陆

文章评论

1128人参与,0条评论