J.11 Class File
Class File
is useful for retrieving information about files or directories from disk. File
objects are used frequently with objects of other java.io
classes to specify files or directories to manipulate.
Creating File
Objects
Class File
provides several constructors. The one with a String
argument specifies the name
of a file or directory to associate with the File
object. The name
can contain path information as well as a file or directory name. A file or directory’s path specifies its location on disk. The path includes some or all of the directories leading to the file or directory. An absolute path contains all the directories, starting with the root directory, that lead to a specific file or directory. Every file or directory ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.