Question: Reading files in Java
I have to make a program in my project of finance that reads the text file and process the data in it. How to read the text file in Java. What is the best way to read the file in Java as its big file.
Please provide me the example code for reading big text file in Java. What do you suggest for Reading files in Java?
My suggestion is to read the file line by line.
You should use the BufferReader class for buffered reading of the file.
See the code examples at: