While browsing the rtl sources, I stumbled on the following in rtl\win32\system.pp const CtrlZMarksEOF: boolean = true; (* #26 not considered as end of file *) The comment seems inconsistent with the the value 'true'. See also http://lazarus-ccr.sourceforge.net/docs/rtl/system/ctrlzmarkseof.html Vincent