Friday, July 7, 2017

Reading file in Java

Reading a Big Text File in Java


Java is famous programming language and it has api for creating applications of almost all the types.

In the programming language some point of type you will find requirement of reading text file. Text can be used to provide some data to program.

You may also use text file to provide data from legacy applications or third party application. If data size of the text is huge it cant fit into Java memory space and program will crash.

The best solution is to read file line by line and this solution works well.

Check tutorial Java Read File Line by Line - Java Tutorial and learn Java code for reading file line by line in Java.

Thanks