May 2, 2018

A Better Way to Achieve Random File Access

RandomAccessFile raf = new RandomAccessFile(f, ???r???);for (???) {; byte b = raf.readByte();} Despite its name, the class is not very convenient for accessing files in a random-access manner, such as: seek, read, seek, read. Each of these directly issue the corresponding system calls/ioctl on the file descriptor. You