Date: Sun, 18 Apr 1999 14:52:37 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Leandro cc: djgpp AT delorie DOT com Subject: Re: Copy whit C++ In-Reply-To: <7f8m5j$fba@enews2.newsguy.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 16 Apr 1999, Leandro wrote: > cprogram prog1.tmp prog1.exe > It isn't displaying any errors, but the program can only copy ASCII files. > When I try to copy binary files, it isn't working!!! The file is copy > incomplete. Welcome to the wonderful world of distinction between text and binary files! You need to open binary files in binary mode. See section 9.3 of the DJGPP FAQ list (v2/faq211b.zip from the same place you get DJGPP) for more details about this.