I'm basically reading in a bunch of words from a text file into my program. At the first line in the text file there is a number indicating the number of words in the file. However theat value is is getting misread somehow. So instead of Size being 981, its some number in the millions.
Function ReadWord(File$,num)
Local Size as integer
open to read num,File$
Read file num,Size
Size=int(Size)
for x=1 to rnd(Size-1)+1
read string num,wrd$
`wrd$=RemoveSpaces(wrd$)
NEXT x
print "num: "+str$(num)
print "Size: "+str$(Size)
print "Word: "+wrd$
close file num
ENDFUNCTION wrd$
And this is what's in the .txt file
981
blablabla
blablabla
blablabla
(...ect)
My computer surpasses all the technologies of the day. What computer do I have?