Im working on large file and I want to overwrite conent file at specific position, like this:
helloworld123456
overwrite new content "internet" at 6th word
hellointernet456
Thank you so much
edit: RandomAccessFile can seek and write directly to file and its worked
randomAccessFile.seek(5);
randomAccessFile.write("internet".getBytes());