Game development - Efficient saving system?

I'm currently making a game with C++, DirectX 9 but I need help with the Saving and Loading features.

My original plan for a saving system would be to export variables in a text file (.txt) but I realized this is a bad idea because any old person could just come and edit the .txt file. Do you know of a file type that is more secure, or at least more intimidating to the "hacker"?



Cheers.
Text files and "efficient" don't go well together. Just save the values in binary form.
If you don't want the files to be easily modifiable, you could additionally compress them and include a hash value of some sort. That's probably enough to scare off most people.
I would suggest binary as Athar said but would suggest xor-ing the output once by a certain binary string. It looks like a mess and is completely unreadable unless you xor it again using the same string as before :)
Topic archived. No new replies allowed.