File.getAbsolutePath

File.getAbsolutePath

Class Overview | Class Members | This Package | All Packages

Syntax
public String getAbsolutePath()
Returns
a system-dependent absolute pathname for this File.
Description
Returns the absolute pathname of the file represented by this object. If this object represents an absolute pathname, then return the pathname. Otherwise, return a pathname that is a concatenation of the current user directory, the separator character, and the pathname of this file object.

The system property user.dir contains the current user directory.

See Also
getPath, isAbsolute, getProperty