1RandomAccessFile file = new RandomAccessFile("c:\\data\\file.txt", "rw");
2
3file.write("Hello World".getBytes());
4
5file.close();
1RandomAccessFile file = new RandomAccessFile("c:\\data\\file.txt", "rw");
2
3file.seek(200);
4
5long pointer = file.getFilePointer();
6
7file.close();