I need help with saved games

Does anybody know how to make a game that enables the player to save game information to the hard drive? For example I want to make a game that can save a file and load a file containing the following info:
points = 301 health = 64 level = 21 location = 3.