CStdioFile f;f.Open( "C:\\temp\\test.xls" , CFile::modeCreate|CFile::modeNoTruncate );
CFile::modeNoTruncate   Combine this value with modeCreate. If the file being created already exists, it is not truncated to 0 length. Thus the file is guaranteed to open, either as a newly created file or as an existing file. This might be useful, for example, when opening a settings file that may or may not exist already. This option applies to CStdioFile as well.
从 MSDN 中复制过来的,仔细研究吧。
这段话在 CFile 的构造函数中说明。