Java tutorial
import java.io.FileInputStream; public class Main { public static void main(String[] argv) throws Exception { FileInputStream file = null; file = new FileInputStream("main.java"); byte x = (byte) file.read(); System.out.println(x); file.close(); } }