🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: File Copy

#19321
From: Andrew Bennett
Date: Thu, 19 Feb 1998 00:00
24 lines
1265 bytes
James D. Frentress wrote:
> 
> It's a bit embarrasing but for the life of me I can't find a one-liner
> to copy a disk file in Java (copy c:\myFile.txt to e:\myFile.txt). Of
> course I can read/write the file or make a System shell call but there
> must be a cleaner way.

Have you looked at using an InputStream and an OutputStream to
read from one and stuff it into the other?



Andrew
--
  Andrew Bennett
  abennett@borland.com

  Due to my workload, personal email more than likely won't get a reply.
  Support options are detailed at http://www.borland.com/devsupport/
  I am unable to answer support questions via email at this time.

  Check http://www.borland.com/devsupport/jbuilder/ for FAQs and
  additional JBuilder support related help.
Technical Details
Message-ID: <34EC8611.154AFA68@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34EB98D0.26C6EB8B@ForAWhile.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e4e7d7ce877368e7
X-Google-Attributes: gidf74b3,public
From: Andrew Bennett <abennett@borland.com>
Subject: Re: File Copy
Date: 1998/02/19
Message-ID: <34EC8611.154AFA68@borland.com>
X-Deja-AN: 326681582
Content-Transfer-Encoding: 7bit
References: <34EB98D0.26C6EB8B@ForAWhile.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: None
Newsgroups: borland.public.jbuilder.java.language