15. Files, Input/Output Streams, NIO and XML Serialization

Objectives

In this chapter you’ll:

Image Create, read, write and update files.

Image Retrieve information about files and directories using features of the NIO.2 APIs.

Image Learn the differences between text files and binary files.

Image Use class Formatter to output text to a file.

Use class Scanner to input ...

Get Java 9 for Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.