摘要: CFile写文件基本的写文件采用的是文件流,举个栗子:CFile m_file; //建立一个CFile对象//打开文件,如果不存在该文件就创建文件if(!file.Open("file.txt",CFile::modeCreate|CFile::modeWrite)){ AfxMessageBox( "can not open file! "); return false;} CString output = "Life is Beautiful.";m_file.Write(output,strlen(output));file. 阅读全文
posted @ 2012-03-11 19:40 小卡的土豆园 阅读(4213) 评论(0) 推荐(0) 编辑