delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/09/20/20:20:39

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 20 Sep 2007 20:20:16 -0400
Message-Id: <200709210020.l8L0KG9G026658@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <B1EIi.52071$rr5.11613@newsfe1-win.ntli.net>
(My_address AT end DOT of DOT post)
Subject: Re: How to copy a file?
References: <B1EIi.52071$rr5 DOT 11613 AT newsfe1-win DOT ntli DOT net>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I think you're doing it the right way, just keep in mind that DJGPP
programs have to move all that data back and forth between DOS memory
and DPMI memory.

You might want to use open/read/write/close instead of
fopen/fread/fwrite/fclose though.

Or, even faster, _read and _write, although then you have to deal with
all the odd DOS border cases.  That does bypass the CRLF code, even
though you've disabled it there's still a check to see if it's enabled
for each read/write.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019