I'm doing my first serialization programs with C++ using the friend keyword and operator overloading (>> <<).
The file in which I store the serialized objects is something called file.CARS, for storing car objects of course.
I created it this way :
std::ofstream output(file.CARS, std::ios::binary);
The file is created and I can store there my objects with no problem. Whoever I discovered something:
The file is called file.CARS and I thought that the ios::binary and "unknown" extension (*.CARS) will help me prevent it from being opened with a simple text editor.
I was wrong... and the content can be seen and modified by a simple text editor...
Is there a way I can "protect" this file?
Thanks a lot for your help.