I have a requirement where I have to read nth line (let's take it 3rd) from the end of the 20 GB file.I cannot load the complete file in the memory and also I cannot split the file into small files.
Do I have to read from 1st line orIs there any other way I can do this in java, maybe by patching or extending FileReader or Buffer reader?