CFile trouble
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hello, when i like to overwrite data in a file with new data, how i do it? I have a file where i save the filenames entered in the "save as" dialog window. Thanks, Mark
Hi, use "CFile::modeCreate" mode. It will truncate the file to 0, if the file is already exists(overwrite). Otherwise, it will create a new file. Hope this helps regards ~Hari~
-
Hi, use "CFile::modeCreate" mode. It will truncate the file to 0, if the file is already exists(overwrite). Otherwise, it will create a new file. Hope this helps regards ~Hari~