I know no READ INTEGER command but assuming that you saved the scores as integers then:
READ INTEGER must be changed to
READ BYTE
however, if they are saved as strings, which you might also have done, then the reason READ STRING command gives an error is probably because the array was not defined as string. This means you can either define the array as string using:
DIM scores$(10) AS STRING
but this is inadvisable becuase you cannot do calculations with strings which means that you'll probably have to convert them to integers each time. The other (recommended) option is to leave the array as integer type and convert the strings your highscore file into integers as they come using:
DIM scores(10)
OPEN TO READ 1,file$
FOR n=1 TO 10
READ STRING 1,temp$
scores(n)=int(val(temp$))
NEXT n
CLOSE FILE 1
I'm not sure if val() returns integers or floats so I put both val() and int() just incase. The help file is very unclear about this.
Another possibility is that you saved the scores as an array then you can just load the array using the
LOAD ARRAY(0) filename$
command
was this helpful?
When the going get stuf,
the stuf get's sinister