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 can use Scanner class
Scanner sc=new Scanner(file); sc.nextLine();