🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.asm.x86
Article #34

Re: Various Questions for DOS Programming...HELP NEEDED

#34
From: Prince of Darkness
Date: Tue, 06 Feb 1996 21:55
9 lines
1015 bytes
trauschu@cs.trinity.edu (Megaman) wrote:
>(3) What is the best way to perform a file "COPY" instruction?  Should I make
>a call to system(), or should I try to make my program more internal by
>writing my own "COPY" procedure?  If so, what is teh best way to do this?

------- Well, I can help you with this one. THe best way to make your
own copy command is to open the two files [one for read and one for
write] and read from the source file in large blocks, say 32 or 64K.
Then write those blocks to the destination file.
Technical Details
Message-ID: <4f8ivh$c24@huey.cadvision.com>
Path: arc1-ca.pugleaf.net!huey.cadvision.com!usenet
References: <4f172i$iq0@neptune.cs.trinity.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!huey.cadvision.com!usenet
From: pod@cadvision.com (Prince of Darkness)
Newsgroups: comp.lang.asm.x86,alt.msdos.programmer,comp.os.msdos.programmer,comp.lang.c
Subject: Re: Various Questions for DOS Programming...HELP NEEDED
Date: Tue, 06 Feb 1996 21:55:59 GMT
Organization: Domain of Darkness
Message-ID: <4f8ivh$c24@huey.cadvision.com>
References: <4f172i$iq0@neptune.cs.trinity.edu>
NNTP-Posting-Host: cad153.cadvision.com
X-Newsreader: Forte Free Agent 1.0.82