Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!apple!voder!pyramid!ctnews!mitisft!dold From: dold@mitisft.Convergent.COM (Clarence Dold) Newsgroups: comp.sys.ibm.pc Subject: Re: File concatenation using Microsoft Message-ID: <1499@mitisft.Convergent.COM> Date: 13 Jun 90 21:14:46 GMT References: <1633@ccadfa.adfa.oz.au> Organization: Convergent Technologies, San Jose, CA Lines: 20 in article <1633@ccadfa.adfa.oz.au>, bxw@ccadfa.adfa.oz.au (Brad Willcott) says: > Your suggestion Milan, seems like a good one, but it assumes that file "A's" > data fills the last sector of the last cluster in its chain! Depending on the > file type this is possible, however, one cannot easily find out. Therefore, I might have missed a link in this thread, but I didn't see anyone point out the "a+" or "a" flag to fopen. Someone gave a code snippet with "ab" in it, but noone pointed out the speed differential between reading every record in the first file till EOF, verses opening the file for append. I assume that MSDOS would lseek to the end of file. Is that not true? If our original poster is reading the entire file, as suggested by the great speed of "copy +" according to his comparison, then maybe all he needs is the "a" flag, again assuming that it works. -- --- Clarence A Dold - dold@tsmiti.Convergent.COM (408) 435-5293 ...pyramid!ctnews!tsmiti!dold FAX (408) 435-3105 P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007