Hi, I want to make an offline highscore table to my game.
How do I do that? Im not talking about the php tables, just a file stored on the computer that displays highscores. The score in the game is stored in the variable 'cash'.

I want to make it so when the user press a button, it checks if the 'cash' variable is high enough, and stores it in a top-10 table. Also a button to see the highscores would be nice.

Can anyone help a newbie out here?