Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!ucla-cs!wales From: wales@valeria.cs.ucla.edu (Rich Wales) Newsgroups: comp.sys.ibm.pc Subject: Re: Text file conversion between UNIX and MSDOS Message-ID: <20387@shemp.CS.UCLA.EDU> Date: 11 Feb 89 01:16:57 GMT References: <9717@pasteur.Berkeley.EDU> Sender: news@CS.UCLA.EDU Reply-To: wales@CS.UCLA.EDU (Rich Wales) Distribution: na Organization: UCLA CS Department, Los Angeles Lines: 17 In article <9717@pasteur.Berkeley.EDU> arya@eros.Berkeley.EDU (Manish Arya) writes: 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). A minor correction: UNIX text files *DO NOT* end in a ^D. UNIX text files (unlike DOS text files) have *NO* special end-of-file character. -- Rich Wales // UCLA Computer Science Department // +1 (213) 825-5683 3531 Boelter Hall // Los Angeles, California 90024-1596 // USA wales@CS.UCLA.EDU ...!(uunet,ucbvax,rutgers)!cs.ucla.edu!wales "The best diplomat I know is a fully charged phaser bank."