Article View: borland.public.jbuilder.java.language
Article #16971Re: Fastest way to copy a file ?
From: Richard Wilkman
Date: Thu, 07 Jan 1999 00:00
Date: Thu, 07 Jan 1999 00:00
34 lines
1507 bytes
1507 bytes
Hansjorg (sorry, I lost the umlaut): You have to read it in and write it out to a new name. Copy is not provided in Java. Your best bet is to use a buffered reader. A cheat (non-portable and dangerous because you can't control or check for error states) would be to just Runtime.exec() a copy command. -Rich Hansj๏ฟฝrg Zimmermann wrote: > > Hi > > What is the fastest way to make a copy of a file ? > > Any hints are welcome > > H. Zimmermann, Fanari AG, Zurich, Switzerland -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<3694DA42.BAF66F49@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3694446B.A79C1FF3@csi.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,10ba123fc551256e X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: Fastest way to copy a file ? Date: 1999/01/07 Message-ID: <3694DA42.BAF66F49@inprise.com> X-Deja-AN: 429836316 Content-Transfer-Encoding: 8bit References: <3694446B.A79C1FF3@csi.com> Content-Type: text/plain; charset=iso-8859-1 Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language