UNB/ CS/ David Bremner/ teaching/ old/ cs1083/ java/ ByteIO.java
import java.io.IOException;
import java.io.FileOutputStream;
import java.io.FileInputStream;
public class ByteIO{


    public static void main(String [] args)
        throws IOException{
        byte outbyte=42;
        FileOutputStream out=
            new FileOutputStream("example.dat");
        out.write(outbyte);
        out.close();
        FileInputStream in=
            new FileInputStream("example.dat");
        System.out.println(in.read());
    } // Ignored exceptions?
}
//