Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pacbell!sactoh0!bkbarret From: bkbarret@sactoh0.UUCP (Brent K. Barrett) Newsgroups: comp.sys.ibm.pc Subject: Re: Text file conversion between UNIX and MSDOS Summary: ^Z not really MSDOS Message-ID: <691@sactoh0.UUCP> Date: 11 Feb 89 20:10:47 GMT References: <89Feb9.123853est.2662@godzilla.eecg.toronto.edu> <9717@pasteur.Berkeley.EDU> Distribution: na Organization: Sacramento Public Access, Ca. USA Lines: 15 In article <9717@pasteur.Berkeley.EDU>, arya@eros.Berkeley.EDU (Manish Arya) writes: - *CRUNCH* - > 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). More accurately, MSDOS optionally uses ^Z to end a file. That's something it kept from CP/M to maintain compatibility. MSDOS text files do not need to be ^Z terminated. -- "Somebody help me! I'm trapped in this computer!" Brent Barrett ..pacbell!sactoh0!bkbarret GEMAIL: B.K.BARRETT