Path: utzoo!utgpu!watmath!julian!uwovax!2014_5001 From: 2014_5001@uwovax.uwo.ca Newsgroups: comp.sys.ibm.pc Subject: Re: append " >> " is not working, why? Message-ID: <3808.25127922@uwovax.uwo.ca> Date: 16 Sep 89 20:47:30 GMT References: <4734@shlump.nac.dec.com> <2553@pur-phy> Lines: 29 In article <2553@pur-phy>, qz@maxwell.physics.purdue.edu (Qin Zhao) writes: > Hi, I recently got some problem when I tried to concatenate two files. > > What I have done is following: > > 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. It likely hold that there is an EOF char at the end of file1. The simple solution is: copy file1+file2 file3 Then, ren file1 *.bk! ren file3 file1 -- Alexander Pruss, at one of: Department of Applied Mathematics, Astronomy, Mathematics, or Physics University of Western Ontario pruss@uwovax.uwo.ca pruss@uwovax.BITNET A5001@nve.uwo.ca