While testing my xml parser, came across an issue. I've attached an example file and snippet. The file has a single line of text, but it's 21k characters long. I can open the file fine, but attempting to READ STRING causes the program to crash.
open to read 1, "c:\data.txt"
read string 1, s$
print s$
`while file end(1) = 0
` read string 1, s$
` print s$
`endwhile
close file 1
wait key
end
When testing the same example in GLBasic, the single line actually gets broken up (internally) into several lines to cope with the long line length. So I'm wondering if this is just a system limitation or what? Either way, there should be some kind of failsafe to prevent the crash.
"Only the educated are free" ~Epictetus
"Imagination is more important than knowledge..." ~Einstein