9.2.5.'void seek(long position) throws IOException' Sets the current position within the file, in bytes.
import java.io.File; import java.io.RandomAccessFile; public class MainClass{ public static void main(String[] argv) throws Exception{
File file = new File("test.dat");
RandomAccessFile raf = new RandomAccessFile(file, "rw");