Does it work on huge files? [...] I have a huge file with 1 GB, will it work?
As far as I can see, it should work well for large files (but I have not tried):
try(Stream<String> lines = Files.lines(path)){
lines.filter(...).map(...)....foreach(...);
}
I mean, we can load the first 1000 lines, and then the second set of 1000 lines.
- , Files.lines(, , BufferedReader, ).