[fpc-pascal] #26 as EOF marker?

leledumbo leledumbo_cool at yahoo.co.id
Wed Sep 2 10:44:50 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).

// Please redirect output from a file
  c: Char;
  while not EOF do Read(c);

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