UNB/ CS/ David Bremner/ teaching/ old/ cs1083/ 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(); // int??
        while (b>=0){ // negative bytes??
            System.out.println("Copying "+b);
            out.write(b);
            b=in.read();
        }
    }
}
//