I have read sources here & there, but did not get the following code working. Basically, I wish to read a text file, named \'Administrator\' from the folder \'src\'. I will
This is a valid absolute path (on the systems I'm aware of):
/path/to/directory/../../otherfolder/etc/
So what the other answer was saying, was to get the path to the current directory with:
String filePath = new File("").getAbsolutePath();
Then concatenate your relative path with:
filePath.concat("path to the property file");