Thats kinda easy, here's the idea:
You write 5 highscores(strings) then 5 difficulties(strings) then 5 time's(float/string)
Do this in your program
-Check if the file exists
-If it exists do:
open to read 1,"highscores.dat
for a=1 to 5
read string 1,high_score$(a)
read string 1,high_diffi$(a)
read float 1,high_time#(a)
next a
close file 1
-When the user is playing, then update the high scores arrays
-At the end do this:
if file exist("highscores.dat")=1 then delete file "highscores.dat"
open to write 1,"highscores.dat"
for a=1 to 5
write string 1,high_score$(a)
write string 1,high_diffi$(a)
write float 1,high_time#(a)
next a
close file 1
im not sure if the syntax is correct, but its a basic idea
Quote: "
UPDATED
Amd 2800+ | 1024mb pc3200 | A7N8eluxe | Ati Radeon 9800PRO 256mb"