Get File Path File Java

Get File Path File Java

Below is sample java program to get absolute file path of existing file including print its parent directory name:

  • GetFilePath.java:

  • Output:

Get File Path File Java

  • ¬†For more information about File API please refer oracle documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *