how do you have your character made up?, if he`s made from seperate variables like
name$="norbert"
skill$="yak hurdleing"
stamina=1
strength=2
then the easiest way to do it without rewriting your code is to do
save_player:
if file exist "savedplayer" then delete file "savedplayer"
open to write "savedplayer",1
write string 1,name$
write string 1,skill$
write long 1,stamina
write long 1,strength
close file 1
return
and to set the player back to what he was do
load_player:
if file exist "savedplayer"
open file to read "savedplayer",1
read string 1,name$
read string 1,skill$
read long 1,stamina
read long 1,strength
close file 1
else
text 200,200,"ERROR! no save file available to load!"
sync
wait 2000
endif
return
all you have to do is write the data in the correct format to the file and then read it back in the correct format and the same sequence into your variables, cheers.
Mentor.