Path: utzoo!utgpu!news-server.csri.toronto.edu!qucdn!spraggej Organization: Queen's University at Kingston Date: Thursday, 14 Feb 1991 14:18:56 EST From: John G. Spragge Message-ID: <91045.141856SPRAGGEJ@QUCDN.QueensU.CA> Newsgroups: comp.lang.pascal Subject: Re: file not found error References: Reference the person who tried to take the EOLN of a file that was just rewritten: When you RESET a file, the pointer is set to the beginning, like so: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.... ^ An EOLN on this file says "get the current character in the file buffer. If it is a 13 (carriage return) return true, otherwise, false. When you REWRITE a file, all characters at and after the file pointer are undefined. Since the pointer is always (barring a SEEK) at the end of a reset file, EOF is always true, and EOLN is undefined. I assume the support routines detected this situation and bounced you. disclaimer: Queen's University supplies me with computer services, not my opinions. John G. Spragge