Path: utzoo!yunexus!lethe!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!dali!milton!uw-beaver!sumax!halcyon!ralphs From: ralphs@halcyon.wa.com (Ralph Sims) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: removal of CR Keywords: CR-LF CR text WordStar file conversion Message-ID: Date: 29 May 90 13:37:35 GMT Article-I.D.: halcyon.cDqXJ1w162w References: <470@ra.MsState.Edu> Organization: The 23:00 News Lines: 20 pam1@ra.MsState.Edu (Phillip A. McReynolds) writes: > Incidently, what are the actual characters which end standard MS-DOS text > files? People keep saying that they are CR-LF's. Is this a special characte > or is it simply a chr(13) followed by a chr(10)? Been wondering... A CTRL-Z is generally used as an end-of-file marker, although it seems much nicer to end it with a NUL. I use EDWIN and have the option of choosing which EOF marker to use in the configuration (too bad I can't selectively use it). NORTON EDITOR uses CTRL-Z, and touts itself as a programmer's editor. Some software needs to see a CTRL-Z, but I think this requirement is tied to a dying breed (hopefully). I peeked at a file terminated with a CTRL-Z and the two ASCII characters were 1A and 10. A file terminated with a NUL EOF marker was 0D 0A 0D 0A 10. --- "These are the days of lasers in the jungle..." Paul Simon, "The Boy In The Bubble" on the _Graceland_ album