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.
Printable View
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.
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