Now I’m making a little program in Java which must read a really big file. Due to this thing, I want to access to the file but not read completely each time, then my question is the following: can I change the offset of the file descriptor with a simple instruction or the only solution that I have is read all the previous lines which I don’t need?
In other words, can I simulate the lseek command in my input file?
I think it’s not necessary this time, but if someone wants code, I’ll post it.
Regards!
I think you probably want
RandomAccessFile.Specifically, you want the seek(long) method.