Hi I have been working on a project in java 1.7 and have come across a problem. I am populating some arrays from text files which are stored in the project in a resources folder.
The problem i'm having is that the files are not being read from them unless they are in the package even when i try setting paths and such. What I mean by this is that the text file will not work if it's in the resource folder that has been set as the source.
This is a link to a picture of my file structure within my project.
This is a link to a picture of my text file loader.
I have had a look at some other questions but all of them just explain how to read files from for example the C drive, whereas I would like to know how to read from a file bundled inside of the finished jar file.
I would really appreciate any help that I can get as i've been trying to fix this for several days with no luck.