delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/02/06:29:05

From: prashant_tr AT yahoo DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Copying a file
Date: Sun, 02 Apr 2000 08:30:57 GMT
Organization: Deja.com - Before you buy.
Lines: 13
Message-ID: <8c70g2$jnu$1@nnrp1.deja.com>
References: <38e68b0b DOT 1715577 AT news DOT freeserve DOT net>
NNTP-Posting-Host: 202.56.250.57
X-Article-Creation-Date: Sun Apr 02 08:30:57 2000 GMT
X-Http-User-Agent: Mozilla/4.61 [en] (X11; I; Linux 2.2.12-20 i586)
X-Http-Proxy: 1.1 netcache_blr (NetCache 4.0R3D2), 1.0 x23.deja.com:80 (Squid/1.1.22) for client 202.56.248.27, 202.56.250.57
X-MyDeja-Info: XMYDJUIDprashant_tr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <38e68b0b DOT 1715577 AT news DOT freeserve DOT net>,
paulio AT starfield76 DOT freeserve DOT co DOT uk (Paulio) wrote:

> Sorry if this is a little simple, but how do you copy a file in djgpp?
> Ive looked under file system functions but I cant seem to find
> anything.

Just open the file in binary mode, read chunks of information, and write
those to another file. Check the fread, fwrite and fopen functions.


Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


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