I'm reading in data into an array. AppGameKit is quicker than DBPro, but not as quick as load array. Anyway, here's the bug...
DBPro code
+ Code Snippetdim Info(10) as string
open to read 1, "data.txt"
print
print " DBPro test"
print ""
for L = 1 to 10
read string 1,Info(L)
print " Line " ; str$(L) ; " is " ; len(Info(L)); " characters"
next L
close file 1
wait key
and AppGameKit code, exact same data file.
+ Code SnippetDim Info[10] as String
Print("")
Print( " AGK test")
Print("")
OpenToRead( 1, "data.txt" )
For Line = 1 to 10
Info[Line] = ReadLine( 1 )
Print( " Line " + str( Line ) + " is " + str( len( Info[Line] ) ) + " characters")
next Line
CloseFile( 1 )
sync( )
do
loop
and here's the output...

What happened at line 4? Seems to have picked up an empty line and bumped the rest down one.
EDIT: Oh, and if I use ReadString instead of ReadLine in AppGameKit, I get the whole file in the first array element, and nothing in the rest, but no EOF error at all.