OK. Try it this way then. I've just edited my code a wee bit, This will be based on the assumption your txt file wont read 'speed = 10' it will just read '10' (trust me, ALOT easier to figure out in code, tho its a GOOD idea to write another txt file to remind you how you formatted it, i'll give example under code), (i'll write new stuff in CAPS)
REM I use stri$ as a string variable to read into then transfer
REM that to an array or what ever
REM OPEN FILE
Open to read 1, "gamestats.txt"
REM Read Line Count
Read String 1, STRI$
Count = val(STRI$)
Dim Info(Count)
REM Read the rest in
For A = 1 to Count
Read String 1, STRI$ : Info(A) = stri$
Next A
REM Close File
Close File 1
REM NOW TO CONVERT THE INFO(A) INTO WHAT EVER VARIABLE YOU WANT
SPEED = INFO(1)
RANGE = INFO(2)
MODEL = INFO(3)
REM NOW YOU CAN CALL UP SPEED,RANGE OR MODEL AND IT WILL BE RIGHT
ok, 2 more examples of your text files you should have (at least the way i see it)
Text File 1 - Variable values (gamestats.txt)
should read:
Now your second text file, (format.txt) has nothing to do with the game, and once the game is completed you could delete it, as its only a referance to you.
This File tells me what is what for the following files
- Gamestats.txt -
Line 1 - Variable (line) Count
Line 2 - Speed value
Line 3 - Range Value
Line 4 - Model Name
Follow this and you should be fine. I use it for all my programs.
EDIT : somerthing wacky is happening with my code statements :S