CHAPTER 9

image

Java File I/O (NIO.2)

9781430247647_unFig09-01.jpg

We covered I/O fundamentals in the last chapter, where you learned how to read and write from console and how to use streams to read and write to files. In this chapter, you will learn how to work with file systems—for example, how to save a file/directory; create a file/directory; navigate directories; copy, move, or delete a file/directory; and so on. As a Java programmer, you should be aware how to programmatically achieve these file/directory operations.

Java offers a rich set of APIs to manipulate files ...

Get Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.