Ah, there we go! I had been using the relative path ("Area.txt"), so I tried putting in the absolute path without the bin, and it worked perfectly! Thanks so much for your help!
Type: Posts; User: Aurevir
Ah, there we go! I had been using the relative path ("Area.txt"), so I tried putting in the absolute path without the bin, and it worked perfectly! Thanks so much for your help!
Well, that begs the question; why would an incorrect path allow it to work inside the class, but not when called from the runner?
Hmmm... it's close, but not exact. To corroborate, the path I'm using for a background image in the runner class goes like this: /Users/*username*/Documents/workspace/Quest/grassBackdrop.jpg
...
/Users/*my username*/Documents/workspace/Quest/bin/Areas.txt
Quest is the working name of the game, so that's what the folder is called in the workspace.
I'm sure that the file name and path name are correct; as I said, when I call the constructor from the public static void main within the class, it runs absolutely fine. If I tell it to print out the...
A friend and I are working on a simple game, and I have run into a roadblock. The program contains a class, called Area, whose purpose is to read in a series of coordinate pairs into an arraylist...