From: lucvdv AT null DOT net (Luc Van der Veken) Newsgroups: comp.os.msdos.djgpp,comp.os.cpm,alt.folklore.computers Subject: Re: EOF char. (Was C++ and RHIDE) Date: Mon, 06 Jul 1998 12:27:29 GMT Organization: . Lines: 29 Message-ID: <35a4c1be.23702950@news.innet.be> References: <35a4cd9e DOT 28052267 AT news5 DOT bellatlantic DOT net> NNTP-Posting-Host: pool02b-194-7-226-221.uunet.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk rwaltman AT bellatlantic DOT net (Roberto Waltman) told us > >Eli Zaretskii wrote: > >>On 2 Jul 1998, Gili wrote: > >> Call me silly, but aren't editors suppose to stop reading in > >> textfiles at the EOF character? Isn't that the specification of some > >> standard? > >No, it's not a standard. It's a left-over from the ancient days of the > >CP/M operating system (which predates DOS). Somebody wanted to avoid > >accessing the file's directory entry (to know its size) when reading it. > > It was (is?) a standard in the CP/M world. CP/M keeps the file > size as the number of 128 byte sectors that the file occupies, > there isn't an exact byte count. The EOF character (CTRL-Z) is > the only way a text file can be 'ended' at an arbitrary point. (Taking the risk that I _again_ say something I have to admit of later that it was wrong) I think it's much older than CP/M. What exact character would be used in the papertape days to signal the end of a tape? Decennia ago I used them, but I don't remember. CTRL/Z - ETX (CTRL/C) - EOT (CTRL/D) - EM (CTRL/Y)? Or more than one, platform-dependent?