Automatically search for files without knowing the filepath of the program?
Hello guys, I ran into a very annoying issue in Java and could not find a good solution for the error... Please help me. https://pastebin.com/md4m0SFm
The provided code is simple and there is nothing to explain about it, but I noticed, that Java does not search for the interface.txt in the local program or local project folder... Which is horrendous to me. I also noticed, that if I create a file on my Desktop called interface.txt and run the program on my DESKTOP, it suprisingly works.... What I basically wanna do is include the interface.txt to my project to display a Logo I made for my program. But no matter what I do, I always come to the conclusion that if I sent the program to a client, it would not work as their filepath or program path would be completely different if that makes sense... HELP!
The provided code is simple and there is nothing to explain about it, but I noticed, that Java does not search for the interface.txt in the local program or local project folder... Which is horrendous to me. I also noticed, that if I create a file on my Desktop called interface.txt and run the program on my DESKTOP, it suprisingly works.... What I basically wanna do is include the interface.txt to my project to display a Logo I made for my program. But no matter what I do, I always come to the conclusion that if I sent the program to a client, it would not work as their filepath or program path would be completely different if that makes sense... HELP!
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.