These demos illustrate how to work with file input and output using Java 8.
Note that these examples are designed to illustrate specific concepts, and may not be an example of proper class design outside of this context.
The following official Java Tutorials may be useful:
The following classes from the Java 8 API may be useful: