home *** CD-ROM | disk | FTP | other *** search
- Path: yama.mcc.ac.uk!dmu!usenet
- From: Timothy Eves <se1te@dmu.ac.uk>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Copy with c
- Date: Fri, 15 Mar 1996 18:12:21 +0000
- Organization: De Montfort Univerity
- Message-ID: <3149B305.586B@dmu.ac.uk>
- References: <660.6643T24T753@enterprise.net>
- NNTP-Posting-Host: harrier.cms.dmu.ac.uk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
-
- Do mean using ANSI C or using the OS?
-
- The ANSI C method you would have to open the source and dest files and
- do a byte by byte copy.
-
- Using the OS would be better as you could do a buffered copy using the
- dos.library commands.
-
- i.e. Allocate a 1Kb buffer and read from the source and write to dest in
- 1k chunks.
-
- Tim Eves
- --
- ------------------------------------------------------------O----------------
- Out of the gloom came a voice, "Smile and be happy things| EMail To:
- could be worse", it said. So I smiled and I was happy,|
- se1te@dmu.ac.uk
- and behold things did get worse. |
- ------------------------------------------------------------O----------------
-