Results 1 to 2 of 2

Thread: how to maintain a hiscore file?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    2

    Post

    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.

  2. #2
    Guest

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width