My Sample Code
String line = null;
RandomAccessFile file = new RandomAccessFile(\"D:/mahtew.txt\", \"rw\");
System.out.println(file.getFilePointe
RandomAccessFile
A random access file behaves like a large array of bytes stored in the file system.
In fact it does not care about shifting the array elements in the case of write operations (only the pointer is advanced). Such an operation overwrites existing values:
Output operations write bytes starting at the file pointer and advance the file pointer past the bytes written.