open to read 1, "myfile.txt"
while file end(1) = 0
read string 1, s$
doSomethingWith(s$)
endwhile
close file 1
Alternatively there are read byte, read word, read float and read long (which is used for integers as well as dwords).
Furthermore you can use this:
open to read 1, "myfile.txt"
make memblock from file memID, 1
close file 1
I never used this method tbh, but I guess this is how it's used. You can then continue reading the data manually out of the memblock. This might or might not be faster than the other method but is often less comfortable. Not sure how
make memblock from file differs from
load memblock fileID, memID though...