Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!mips!pacbell.com!pacbell!att!drutx!druco!gibbons From: gibbons@druco.ATT.COM (GibbonsT) Newsgroups: comp.sys.ibm.pc Subject: File concatenation using Microsoft C under MS-DOS? Message-ID: <4891@druco.ATT.COM> Date: 8 Jun 90 17:01:22 GMT Reply-To: gibbons@druco.ATT.COM (GibbonsT) Organization: AT&T Bell Laboratories, Denver Lines: 17 Here's a problem I've been battling... any pointer would be appreciated. What's the quickest way to concatenate one large file (~100K) to another using Microsoft C under MS_DOS? Write now I'm just opening the two files and reading from one and append to the other, but it is rather slow. The DOS "copy" command can do this much more quickly using "copy A + B" but I can't figure out how to run "copy" from a C program. I've tried calling "copy" with a spawnl() command but that didn't work so i made a batch file that called copy and then tried to spawnl() the batch file, but that didn't work. So, any suggestions? Any I overlooking something extremely obvious? Thanks in advance, Tom Gibbons, gibbons@druco.att.com