This is the first of two sections on file I/O in Java 8. It shows how to apply the power of Java 8 Streams to greatly simplify reading files and exploring folders. Reading text files in Java 8 is now very competitive with similar tasks in Python and Perl. The next section (file I/O part 2) shows how to use lambdas and generic types to make the file IO code more flexible, reusable, and testable.
See http://www.coreservlets.com/java-8-tutorial/ for the complete tutorial, downloadable and printable PDF files, source code, exercises, and exercise solutions.