Subject: Re: Fseek Help?
From: [email-masked] ($Bill Luebkert)

26 Jun 1998 22:23:22 -0700
Message-ID: <[email-masked]>
References: <c=GB%a=TMAILUK%p=DCNET%l=[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Edward Avis <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>

Edward Avis wrote:
> 
> [about the end-of-line CRLF vs LF problem]
> 
> >Using CR-LF for end-of-line pre-dates both DOS and UNIX.
> 
> It doesn't predate C, though.
> 
> Or were there other systems that used \n as end-of-line and needed
> conversion to \r\n?

CR-LF comes from way back in the teletype days prior to any major 
operating systems.  The carriage-return returned the carriage to 
the beginning of the line and the linefeed moved the paper up a line.

Most of us old-timers that used/maintained teletype equipment used 
2 Cr's and 1 LF at the end of a line to ensure the carriage was 
returned properly otherwise you got a big black letter at the end 
of a line when the CR failed.  Double spacing (2 LFs) also helped 
reduce line overwrite problems.

The only use I can see for a CR these days is to do line overwrite 
to a display screen.  And even that can be done other ways.  If 
M$ had any sense, they would drop the CR and save a few terabytes 
of space in the world for other things.  :)

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Mailto:[email-masked]
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".