Problem with file address
I have a problem with my java program I wrote:
On my computer it works fine, because the file I use in the code has an absolute address to an specific place on my hard drive:
but I need to send the source files to another person ( my teacher ) and I need the code to work on his computer too...
public static final File kombinace = new File("D:\\Documents\\NetBeansProjects\\spalicky\\src\\spalicky\\kombinace.txt");
do you have any idea how to edit the code to fix this problem???
I thought maybe be the relative address to the file or some including of the file like a resource might work but I dont not how to do this or if its even possible ..
thank for every reply :)