[fpc-pascal] #26 as EOF marker?

leledumbo leledumbo_cool at yahoo.co.id
Wed Sep 2 10:46:23 CEST 2009


Does FPC use #26 as EOF marker? I use a loop that calls Read until it meets
EOF, and right before the loop ends, #26 is met. This happens at least on
Windows (other platforms untested).

code:
// Please redirect input from a file
var
  c: Char;
begin
  while not EOF do begin
    Read(c);
    Write(c);
  end;
end.

-- 
View this message in context: http://www.nabble.com/-26-as-EOF-marker--tp25253788p25253788.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.




More information about the fpc-pascal mailing list