not sure if the title is appropriate...
this is what i wanted to get:
i have a text file: output.txt
and it will be put along with all my application class file inside a folder - "whatever".
and since this "whatever" folder will be move to different directory very frequently, how am i going to keep track on the output.txt file path?
i tried using getClass().getResource("output.txt") but failed.
String filepath = ?? //how to locate the file?
File f = new File(filepath);