Is there any method to read a specific line from a text file ? In the API or Apache Commons. Something like :
String readLine(File file, int lineNumber)
According to this answer, Java 8 enables us to extract specific lines from a file. Examples are provided in that answer.