I've tried doing it this way:
File f = new File(this.getClass().getResource("/images/IntroScreen/logo.txt").toURI()); and File f = new File(this.getClass().getResource("/images/IntroScreen/logo.txt").getFile());
However, I get the error
java.io.FileNotFoundException: file:\C:\Users\Grexel\workspace\RunKnight.jar!\images\IntroScreen\logo.txt (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.util.Scanner.<init>(Unknown Source) at SpriteSheet.loadSpriteSheet(SpriteSheet.java:112) etc. etc. etc
Should I ditch trying to load the file and focus on loading the stream? Or is there a way to do this that I haven't thought of/found yet?