Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!mentor.cc.purdue.edu!pur-ee!pur-phy!maxwell.physics.purdue.edu!qz From: qz@maxwell.physics.purdue.edu (Qin Zhao) Newsgroups: comp.sys.ibm.pc Subject: append " >> " is not working, why? Message-ID: <2553@pur-phy> Date: 15 Sep 89 06:21:45 GMT References: <4734@shlump.nac.dec.com> Sender: news@pur-phy Reply-To: qz@maxwell.physics.purdue.edu.UUCP (Qin Zhao) Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 30 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.