November 2006
Intermediate to advanced
224 pages
3h 29m
English
A common task in most Java applications is working with the file system, which includes directories and files. In this chapter, we present phrases to help you work with files and directories in Java.
The main class we will use in this chapter is the java.io.File class. This class allows you to list, create, rename, and delete files, as well as work with directories.
Many of the phrases in this chapter have the possibility of throwing a SecurityException. In Java, the file system is protected by the Security Manager. For some applications, you might need to use a custom implementation of the Security Manager. Applets are the most restricted types of Java applications in terms of being able to access files ...