23
Is there a way to read from a file that is in the same folder as the .jar file? I am trying to create a java program that has to read from a file when I turn in my assignment. I do not know where the file or program will be held once I turn it over so I dont think I can encode the directory of the held file. Is this possible? The problem is that i have to upload the file to a CSX hosts server which is a linux server and run it from there. If I dont put a path before the file will it just search its current folder location?