Saving and Loading Data C++

c++

Solution

You should store your data in binary files. But people still can change it anyway (like I often change skill point or stat point of my character in Diablo2 :D) so you should consider find a algorithm to calculate hash sum and store it within your data.

Problem

I know of a crude way of saving program data, keeping it in a text file. The problem is that anyone has access to the text file and can manipulate it. For example I want to save and load game data which changes as the game progresses. What methods are there to store such data and keep it accessible only within the game program so it isn't manipulated by others?

Original source