In java,
File f; f = new File(\"myfile.txt\"); if (!f.exists()) { f.createNewFile(); }
when excute the above code,which path is assig
The current directory, which you can get by calling:
new File('.').getCanonicalPath();
The current directory.
The current directory. Apparently System.getProperty("user.dir") can get this for you.
System.getProperty("user.dir")