Hello, I created a file in the directory where the java program was run called some.txt. How do I retrieve the full system path of the file?
File x = new File("sometext.txt");
System.out.println("The file has path " + x.getPath());
the x.getPath() just returns the path relative to the working directory.