The getAbsoluteFile() method returns the absolute form of the given
2. Method signature
- method does not take any parameter
- the absolute abstract pathname indicating the same file or directory as this abstract pathname
- SecurityException - when we do not have access to the file or directory
3.1. The program that gets the absolute file from
In this article we presented how to use the
File.getAbsoluteFile() method. The method can be helpful if you create a file using a relative path and want to retrieve information about the parent directory.