On 3 mei 2006, at 06:37, John Coppens wrote:

I see your reasoning, but I do not understand why eof doesn't return
always. The eof is not a 'wait for eof', but a test. If we're _not_ at
the end of the file, the program should return with false, at least how I
understand it.

It is not possible to know whether you are at the end of a file or device without (attempting to) read from it (unless you previously hit the eof marker).


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to