Are you asking about saving the values of variables in a file, such as the game state?