Date : Sun, 23 Sep 1990 09:21:41 GMT
From : zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!comp.vuw.ac.nz!actrix!ewen@tut.cis.ohio-state.edu (Ewen McNeill)
Subject: How "hard" is CR-LF
In article <4584@crash.cts.com> mwilson@crash.cts.com (Marc Wilson) writes:
> Why don't you just scan for the CR? If you find one, then look
> at the next character. If it's a LF, then throw it away. If it's
> not, you've got a weird file.
IMHO, the best idea is to scan for a LF. If you find a CR, then
ignore it. This means that you can read in text files that were
produced on Unix/Amiga/whatever which only have LFs, directly.
If more CP/M utilities did this (UNARC does when typing a file from
an archive), then life would be much nicer, and I could throw away
my unix2cpm program.
---
Ewen McNeill. Email: ewen@actrix.co.nz