Article View: borland.public.jbuilder.java.language
Article #16978Re: Fastest way to copy a file ?
From: Hansjörg Zimmermann
Date: Thu, 07 Jan 1999 00:00
Date: Thu, 07 Jan 1999 00:00
48 lines
1943 bytes
1943 bytes
Thanks for reply I had the apprehension, that this will be the answer to my question. Because each operating system has a copy functionality, i had a little hope, that this would be a part of java. Anyway, i'll do it with buffered reader. Thanks Hansjoerg Zimmermann Fanari AG Richard Wilkman schrieb: > 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:
<36952B6B.86E4D488@csi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3694446B.A79C1FF3@csi.com> <3694DA42.BAF66F49@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,10ba123fc551256e X-Google-Attributes: gidf74b3,public From: Hansjörg Zimmermann <hjzimmermann@csi.com> Subject: Re: Fastest way to copy a file ? Date: 1999/01/07 Message-ID: <36952B6B.86E4D488@csi.com> X-Deja-AN: 429956308 Content-Transfer-Encoding: 8bit References: <3694446B.A79C1FF3@csi.com> <3694DA42.BAF66F49@inprise.com> X-Accept-Language: de Content-Type: text/plain; charset=iso-8859-1 Organization: Zimmermann EDV-Beratung Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language