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.
这3个都加进去吗?我试了,不行啊.
能具体点吗?
ff.WriteString(st);
ff.WriteString("\n");
ff.Close();这是在一个对话框里的。
我下次打开对话框在输入,就覆盖了
ff.SeekToEnd();
ff.WriteString(st);
ff.WriteString("\n");
ff.Close();
谢谢大家。