I need to read a large text file of around 5-6 GB line by line using Java.
How can I do this quickly?
You need to use the readLine() method in class BufferedReader. Create a new object from that class and operate this method on him and save it to a string.
readLine()
class BufferedReader
BufferReader Javadoc