The second parameter in the read string function is the string you read the data into. So you could do something like this
rem setup an array to store the data in
dim data(10) as string
rem set a current line integer
line = 0
rem open the file
open to read 1, "myfile.txt"
while not file end(1)
read string 1, data(line)
rem increase line value, could also do line = line + 1
inc line
endwhile
rem very important!
close file 1
And then you have the array which holds all the values. If you want to get an integer out of it you could just do this.