www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/05/20:15:38

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: <Pine DOT SUN DOT 3 DOT 91 DOT 980705162804 DOT 23984W-100000 AT is> <35a4cd9e DOT 28052267 AT news5 DOT bellatlantic DOT net>
NNTP-Posting-Host: pool02b-194-7-226-221.uunet.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

rwaltman AT bellatlantic DOT net (Roberto Waltman) told us

> >Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019