Saving game progress

I want to save the player’s progress in my game (e.g. accumulated coins). I want the progress to be saved when the player exits the game completely. How and through what can I do this?

Here’s a tutorial on how to.