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)
guava has something similar:
List Files.readLines(File file, Charset charset);
So you can do
String line = Files.readLines(file, Charsets.UTF_8).get(lineNumber);