when you use the FBC (for DOS) and try to load a text file in the following way:
Code: Select all
defint a-z
dim i as integer
dim l as string
print "Start"
open "test11.txt" for input as #1
while not eof(1)
line input #1, l
print "X",l
i+=1
if i>10 then print "Aborted": exit while
wend
close #1
print "End"
The problem is in fb_FileEof when you check for the file pointer instead of feof() for an INPUT mode file.
Regards,
Mark