Say I need to read huge binary file of integers, a handy way is:
FileInputStream fi = new FileInputStream(file); BufferedInputStream bi = new BufferedInput
Have a look at NIO. For example, java.nio.MappedByteBuffer.