I have a file within my project called x.txt in the same directory as a file that takes x and reads it. However, when using JUnit testing, if I test on a different PC, it will have a different absolute path to the file x.txt
How do I do this so that I dont need to enter the absolute file path, but can hardcode the relative file path for use?