Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!rutgers!cmcl2!yale!spolsky-joel From: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Newsgroups: comp.sys.ibm.pc Subject: Re: Text file conversion between UNIX and MSDOS Message-ID: <50338@yale-celray.yale.UUCP> Date: 11 Feb 89 06:52:32 GMT References: <89Feb9.123853est.2662@godzilla.eecg.toronto.edu> <9717@pasteur.Berkeley.EDU> Sender: root@yale.UUCP Reply-To: spolsky-joel@CS.YALE.EDU (Joel Spolsky) Distribution: na Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 17 In article <9717@pasteur.Berkeley.EDU> arya@eros.Berkeley.EDU.UUCP (Manish Arya) writes: > UNIX ends files with ^D (4 > decimal) while MSDOS uses ^Z (26 decimal). > >- Manish Arya False. Unix doesn't terminate files with anything. ^D is just the keyboard command to send an "EOF" to a program. By the way, the ^Z in DOS is not necessary either. As DOS knows the exact length of files, there is no need for an explicit EOF character. +----------------+----------------------------------------------------------+ | Joel Spolsky | bitnet: spolsky@yalecs.bitnet uucp: ...!yale!spolsky | | | internet: spolsky@cs.yale.edu voicenet: 203-436-1483 | +----------------+----------------------------------------------------------+ #include