Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!rtech!llama!fredb From: fredb@llama.rtech.UUCP (Fred Buechler) Newsgroups: comp.sys.ibm.pc Subject: Re: append " >> " is not working, why? Message-ID: <3644@rtech.rtech.com> Date: 15 Sep 89 20:10:06 GMT References: <4734@shlump.nac.dec.com> <2553@pur-phy> Sender: news@rtech.rtech.com Reply-To: fredb@llama.UUCP (Fred Buechler) Organization: Relational Technology, Inc. Alameda, CA Lines: 29 In article <2553@pur-phy> qz@maxwell.physics.purdue.edu.UUCP (Qin Zhao) writes: > > Hi, I recently got some problem when I tried to concatenate two files. > >What I have done is following: > There is tow file: file1 and file2 ( I got from somebody else ). > I gave command: > > type file2 >> file1 > > in order to put file2 at the end of file1. And then I used "dir" to check >the size of file1, it was increased by the size of file2. >However, when I tried to read the contents of file1, I could only see the >original part of file1. I had used several editors, and "type" commands. >But when I rewrote file1 using the editor, the size of file1 drops to the >original size of file1. > > I guess that file1 and file2 were created in old version (3.0 ) DOS, and >the end-of-file character may be not recognized by the new version ( 3.3) of >DOS. But I am not sure how this can happen, and how can I solve this problem. >I would be very much appreciated, if somebody can provide some information. The problem is that the end of file mark (^Z) is still at the end of the first file (as well as a second one at the end of the whole file). The way to concatenate files is to use the DOS copy command. There is a special syntax that will concatenate the two files. I don't have the manual handy to look up the specifics now. Good Luck! -- fredb