UNB/ CS/ David Bremner/ teaching/ java/ FileCopy.java
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
public class FileCopy{
    public static void main(String [] args)
        throws IOException{
        FileInputStream in=
            new FileInputStream(args[0]);
        FileOutputStream out=
            new FileOutputStream(args[1]);
        int b=in.read();
        while (b>=0){
            System.out.println("Copying "+b);
            out.write(b);
            b=in.read();
        }
    }
}
//