Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!ankh!branch!wcr From: wcr@branch.FIDONET.ORG (W.c. Rothanburg) Newsgroups: comp.sys.ibm.pc Subject: append " >> " is not working, why? Message-ID: <1267.25133320@branch.FIDONET.ORG> Date: 17 Sep 89 03:27:36 GMT Organization: The Branch Office, Pompano Beach, Florida. (305) 979-2073 Lines: 69 In an article of <15 Sep 89 06:21:45 GMT>, 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: > > 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. >' Actually, It did work. DOS normally marks the end of a text (ascii) file with a Ctrl-z. Dos's append '>>' added the output of the type command the the first file, after the Ctrl-z to mark the end of the file. Try: copy file1+file2 file3 This will copy the contents of file1 and file2 to file3. I beleive this will correct the problem you are expirencing. Bill -- --------------------------------------------------------------------+ "Out on a Limb in The Branch Office...." ] ] Fidonet : 1:369/11 The Branch Office. (branch.FIDONET.ORG) ] UUCP : {sun!hoptoad, attctc, !mthvax}!ankh, ] gatech!uflorida!novavax!branch!wcr ] ] INTERNET: wcr@branch.FIDONET.ORG -or- wcr@f11.n369.z1.FIDONET.ORG ] BBS : +1 305 979-2073 ] 'I was asking for it.....' ] --------------------------------------------------------------------+