import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class FileCopy2{
public static void main(String [] args) throws IOException{
FileInputStream in=new FileInputStream(args[0]);
FileOutputStream out=new FileOutputStream(args[1]);
StopWatch clock=new StopWatch();
long bytes=0;
clock.start();
int b=in.read();
while (b>=0){
bytes++;
out.write(b);
b=in.read();
}
clock.stop();
System.out.println(bytes+" bytes copied in "+
clock.getElapsedTime()+"ms");
}
}
//