Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!eros.Berkeley.EDU!arya From: arya@eros.Berkeley.EDU (Manish Arya) Newsgroups: comp.sys.ibm.pc Subject: Re: Text file conversion between UNIX and MSDOS Message-ID: <9717@pasteur.Berkeley.EDU> Date: 10 Feb 89 19:18:42 GMT References: <89Feb9.123853est.2662@godzilla.eecg.toronto.edu> Sender: news@pasteur.Berkeley.EDU Reply-To: arya@eros.Berkeley.EDU.UUCP (Manish Arya) Distribution: na Organization: U.C. Berkeley EECS CAD Group Lines: 20 In article <89Feb9.123853est.2662@godzilla.eecg.toronto.edu> noworol@eecg.toronto.edu (Mark Noworolski) writes: >Very frequently when I get stuff off the net I run into the problem of >no carriage returns. It appears that UNIX stores text a little differently >from Messdos. Several file transfer protocols, including kermit and zmodem, will perform the necessary conversions on the fly when sending text files. If you have access to file transfer software implementing one of these protocols, you can save yourself alot of trouble by using it (as opposed to using some other protocol like xmodem and then "fixing" the files with a separate program). Furthermore, such protocols will "do the right thing" with other operating systems also, whose text file storage formats may be different from both UNIX and MSDOS. Incidentally, UNIX terminates each line of an ASCII file with a line feed (10 decimal). MSDOS, however, ends each line with a carriage return (13 decimal) and line feed. UNIX ends files with ^D (4 decimal) while MSDOS uses ^Z (26 decimal). - Manish Arya