![]() |
![]() |
![]() |
![]() |
File operations
The file operations panel contains options for manipulating files. These operations are available to any Java Application, but are usually denied to an Applet by the web browser's security policy.
All of the file operations require a File object. This is a class which can refer to a user file in an operating system independent way. The first two options are used to create File objects. The first creates a File object using a hard-coded path. The second lets the end-user choose a file using a FileDialog. In both cases, an unused, legal Java name must be specified to refer to the File object. All other file operations will use this name to refer to the file. These include
- Create a new File object from a pathname...
- Create a new File object from a FileDialog...
- Delete a File object...
- Rename a File object...
- Copy a File object...
- Ask if the File exists...
- Ask if the File is a normal file...
- Ask if the File is a directory...
- Ask if the user has read permission for a File...
- Ask if the user has write permission for a File...
- Get the filename from a File object...
- Get the directory from a File object...
- Get the full pathname from a File object...
- Get the file size from a File object...
- Get the last modified date from a File object...
- Create a new directory...
- Write a String to a text file...
- Read a String from text file...
- Write an Object to a File...
- Read an Object from File...
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |