I need to read the content of a large file. For that I Googled on it and found so many methods and resources. But I'm still confused which is the method to read the large files (Factors need to be consider in my case are memory allocation, performance, large file )
- Using
FileChannel
- using
Files.readAllLines
- using
BufferedReader
Can anyone guide on this?
.readAllLines()
, I take it the contents are text?