How to save game on computer?

How to save game on computer? I need it because my game has 82 levels (
).

Game Editor discussion board
http://game-editor.com/forum/
asmodeus wrote:Either you use variables that you save in groups (screenshot) and use the loadVars() and saveVars() functions or you use a file.
stage = 1;
saveVars("myfile", "mygroup");
loadVars("myfile", "mygroup");
Sondise wrote:What's "myfile"?
got_diamond = 1;
saveVars(...);
loadVars(...);
if(got_diamond==1) DestroyActor("diamond");