Hi,
In my program I am writing a file of my programs states. I am writing the file many times to the file during the program run, because the program changes some variables that that i need to store very frequently.
Now, if , for some reasons my power fails. Then most of the time I loose data in that file.
Please, tell me any mechanism which can protect data even if the power fails. (I have written C++ program on windows).
Thank you