High_Score=0
if file exist("hi.sco")
open to read 1,"hi.sco"
read word 1,High_Score
close file 1
endif
at the start of your code will load a saved highscore the next time the code is run, at the end of the game (in the exit or death sequence) add the lines
if Game_Highscore>High_Score
if file exist(hi.sco")
delete file "hi.sco"
endif
open to write 1,"hi.sco"
write word 1,Game_Highscore
close file 1
endif
this will remove the old high score if it exists and write the latest one to the file hi.sco, so the first time your program saves the file it will not erase the old score(since there isnt one), but create a file and save the new high score, the next time the game is run the old score will be removed, then a new high score file will be written with the new score, but only if the new highscore (Game_Highscore) is higher than the old highscore, otherwise the original highscore stands (ie nothing is altered since the first condition is false).
Mentor.
PC1:XP, P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro, 6 way speakers.
PC2: Linux, AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
PC3: XP, laptop, intel 2.6ghz celeron, ATI mobility 9000, 256mb