The behaviour for each platform is described by the
 CtrlZMarksEOF
Boolean constant.

It is documented :-)

Michael.

Wed, 2 Sep 2009, leledumbo wrote:


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.

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

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

Reply via email to