Save or write to external file.

Does anybody know how to save data or write to an external file?
So I can input some data, shut down true basic, start true basic up again and load that data? Thanks!