I've got a Java question that I've been having a trouble with: what is a good way to indicate relative file paths.
Let me be more specific. I want to be able to say to always look for configuration files in ./configuration/file.txt
. The problem I'm having is that my program will only work correctly if it is started from the directory the file is in. If instead I start it from a different directory like ./directory/to/my/program/execute.sh
then it fails to function correctly.
But I also need to make changes to this file, and resources seem to want to be read-only...