Zulkanien
0
Q:

get current file path java

 String current = new java.io.File( "." ).getCanonicalPath();
        System.out.println("Current dir:"+current);
 String currentDir = System.getProperty("user.dir");
        System.out.println("Current dir using System:" +currentDir);
2
File file = new File("yourfileName");
String path = file.getAbsolutePath();
1

New to Communities?

Join the community