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
>
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
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