CStdioFile Myfile;
if(!Myfile.Open(s.filename,CFile::modeCreate|CFile::modeReadWrite|CFile::typeText))
s.filename文件名if()中是什么意思?
if(!Myfile.Open(s.filename,CFile::modeCreate|CFile::modeReadWrite|CFile::typeText))
s.filename文件名if()中是什么意思?
解决方案 »
- ado连接动态表
- ACCESS数据库占空间大的头疼问题
- 如何在其他应用程序上面画图
- VB调用VC的库,提示找不到路径的问题
- socket是全局变量,需要不需要保护呢?
- 请你们聊聊阅读的<<Windows核心编程>>
- 有关"CArray"元素修改的问题
- 谁有magic winmail server 4.0的注册码
- 郁闷!为什么我们VC版没有VB版中的“控件”版?
- 怎样将金山词霸的词典内容转换成通用数据库格式(如ACCESS或dbf)或纯文本文件?
- COM技术是否已经过时了?现在开始学晚不晚?(各味大虾,不要看到分少就跑,谈谈你的观点)
- 如何实时显示音频采集的波形?数据量太大,一个一个的画,反应不过来.
Nonzero if the open was successful; otherwise 0. The pError parameter is meaningful only if 0 is returned.
尤其是这
后面那些是打开的参数,CFile::modeCreate Directs the constructor to create a new file. If the file exists already, it is truncated to 0 length.
如果不存在就创建,存在就把这个文件内容清空CFile::modeReadWrite Opens the file for reading and writing
文件可读可写CFile::typeText Sets text mode with special processing for carriage return–linefeed pairs (used in derived classes only).
这个文件是文本方式的