Skip to main content

Files and Directories

  • Chapter
Book cover Pro Java 7 NIO.2
  • 743 Accesses

Abstract

Now that you know how to point to a file or directory using the Path class, you are ready to learn how to accomplish the most common tasks for managing files and directories, such as create, read, write, move, delete, and so on. NIO.2 comes with a set of brand new methods to accomplish these tasks, most of which are found in the java.nio.file.Files class.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Anghel Leonard

About this chapter

Cite this chapter

Leonard, A. (2011). Files and Directories. In: Pro Java 7 NIO.2. Apress. https://doi.org/10.1007/978-1-4302-4012-9_4

Download citation

Publish with us

Policies and ethics