[fpc-pascal] eof strangeness

Jonas Maebe jonas.maebe at elis.ugent.be
Wed May 3 09:46:37 CEST 2006

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).


More information about the fpc-pascal mailing list