How to read a file from a certain offset in Java?

RandomAccessFile exposes a function:

seek(long pos) 
          Sets the file-pointer offset, measured from the beginning of this file, at which the next read or write occurs.

Leave a Comment