[Edited]

Let's say I have to read several text files and parse them line by line. This can be done in multiple ways. What is the best way? Would you recommend using java.util.Scanner or the new nio classes <http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html>
for this task? I am using Java JDK 7

Thank you all for answers. I have also found this useful [Fastest way of processing Java IO using ASCII lines](https://stackoverflow.com/questions/2111749/fastest-way-of-processing-java-io-using-ascii-lines)