Java reading nth line
问题 I am trying to read a specific line from a text file, however I don't want to load the file into memory (it can get really big). I have been looking but every example i have found requires either to read every line (this would slow my code down as there are over 100,000 lines) or load the whole thing into an array and get the correct element (file will have alot of lines to input). An example of what I want to do: String line = File.getLine(5); "code is not actual code, it is made up to show