Re: Copy File in Java

1998-12-18 Thread Moses DeJong
There is no copy file operation in the JDK API. You will have to open the file and write a read-write loop for the data. Mo DeJong [EMAIL PROTECTED] gimme multimedia group On Thu, 17 Dec 1998, Sze Yuen Wong wrote: > Hi, > > Anybody know how to copy a file in Java? > > Thanks. > > Sze Yuen >

Re: Copy File in Java

1998-12-17 Thread Javier G.C.
Hope this little example helps you :) import java.io.*; class copy { public static void main (String args[]) throws IOException { if (args.length != 2) throw (new RuntimeException ("Syntax: copy ")); FileInputStream in = new FileInputStream(args[0]); FileOutputS

Copy File in Java

1998-12-17 Thread Sze Yuen Wong
Hi, Anybody know how to copy a file in Java? Thanks. Sze Yuen _ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com