I'm just trying to do a simple text file read in java for my server. HOWEVER when I try to read the file I get an error saying that the file/directory cannot be found, the code I'm using to reference the file is as follows:
File levelOne = new File("lev1.txt");
The error is that it cannot find lev1.txt, which is within the src folder, and the class which is trying to access this, is in the default package. I have tried moving my text file into the default package but eclipse does not allow me to.
I have also tried moving both the class and txt file to a different package however this still gets file not found.
I'm really confused..