eof strangeness

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

eof strangeness

John Coppens
Hi all.

While modifying some older programs, I found a strange effect with eof
(input). When calling eof(input), the program needs an <enter> key to
continue. I just downloaded 2.0.2, with the same result.

The definition of eof (according to the FPC docs) is that it immediately
returns... which is what I need. Can anyone suggest a solution for this?

program testeof;

begin
  if eof then
    writeln('EOF found')
  else
    writeln('No EOF found');
end.

This sample program doesn't return till <enter> is pressed.

TIA,
John

Note: first send to the list didn't get published...
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal