Hello everyone!
For my 'tanks' game which I am developing in Java I need to read a text file in which the map's data is stored.
I made a new class for this called 'MapReader'.
However, I would like to be able to use the 'read' function of the class without instantiating a new MapReader object.
That's why I made it a static class.
Now my problem is that I can't seem to find a way to get the relative path which is needed to load the file.
If it weren't static I would just be able to use new File(getClass().getResource("/maps/map.txt"));