Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Text file being overwrite when another info is save in he same text file

At first, the text file is use for saving user information but after that when i want to save more thing in the same text file, the user infomration is being overwite. How can prevent the original message from being overwite?
0 Kudos
Message 1 of 2
(2,976 Views)
When you create the CFile/CNiFile object to write to the file, use the CFile::modeNoTruncate flag to indicate that you want to open the file as an existing file and that you don't want the file to be truncated to 0 length. For more information, see documentation for the CFile flags.

- Elton
Message 2 of 2
(2,976 Views)