I/O and Files

Preview

Before Java 7, file code mixed java.io.File, manual streams, and easy-to-forget close() calls. NIO.2 (java.nio.file) gives you:

Sign in to read the full chapter.

Checking access…