How to save data in a program

Or this would be a better link