title: writing a relative path to a text file in java
body: <p>I'm working on this project, and I am accessing a lot of text files that I have put in a resources folder.  I'm having a lot of trouble writing the relative path to these files.  In the command line, I got from the directory containing the java file with a main method to the text file I want with "cd ../../../../../../../resources/Information/ConfluneceTotalLists/table.txt".  I tried writing using this in the main method to get the file, but it did not work.  How can I fix this?  Also, when a java program is running, is the current directory the one containing the java file with the main method?</p>