PDA

Click to See Complete Forum and Search --> : how to maintain a hiscore file?


lec
Aug 10th, 1999, 02:29 PM
please, i need some help on how to keep an hiscore file(i.e. how to retrieve the data and writing back) i will be grateful for any help.

Aug 10th, 1999, 06:03 PM
You might get more responses if you typed "High Score" file.
Since this file sounds like it will be small (holding maybe one number), you might prefer writing/reading a value to the registry.
Look up "GetSetting" and "SaveSetting".
GetSetting(Appname, Section, Key, [Default]) As String and
SaveSetting(Appname, Section, Key, Setting)
(Appname, Section, Key, Setting)

But you should know how to access your own files. Look up the "Open, Line Input #, Input #, Print #, Write #" statements,
Open pathname For [Input | Output | Append] As filenumber [Len = buffersize],
"Line Input #, Input( ), or Input # statement to copy the file into program variables.
Print #FileNum, TheBox.Text
Write #FileNum, AnyString, AnyNumber