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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights 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
DOI: https://doi.org/10.1007/978-1-4302-4012-9_4
Publisher Name: Apress
Print ISBN: 978-1-4302-4011-2
Online ISBN: 978-1-4302-4012-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)