🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16980

Re: Fastest way to copy a file ?

#16980
From: Richard Wilkman
Date: Thu, 07 Jan 1999 00:00
72 lines
2671 bytes
Hansjorg:

Unfortunatly copy is very low level (some would say atomic) in the OS
and Java doesn't go that deep.

-Rich

Hansj�rg Zimmermann wrote:
> 
> 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
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

-- 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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: <36954442.E3883A83@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3694446B.A79C1FF3@csi.com> <3694DA42.BAF66F49@inprise.com> <36952B6B.86E4D488@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: <36954442.E3883A83@inprise.com>
X-Deja-AN: 429990428
Content-Transfer-Encoding: 8bit
References: <3694446B.A79C1FF3@csi.com> <3694DA42.BAF66F49@inprise.com> <36952B6B.86E4D488@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