isn't that the point of relative paths? so you don't have to type out the whole current directory?
If you need a different directory (without knowing the complete address before-hand), this link...
Type: Posts; User: helloworld922
isn't that the point of relative paths? so you don't have to type out the whole current directory?
If you need a different directory (without knowing the complete address before-hand), this link...
Create one then :P
File myFile = new File("file.txt");
myFile.getAbsolutePath();
You can use the getAbsolutePath() method in File.