If I want to read from \"Words.txt\" which is in the same package as the class, how would I do this? Doing simply Scanner = new Scanner(new File(\"Words.txt\"));
Scanner = new Scanner(new File(\"Words.txt\"));
InputStream is = MyClass.class.getResourceAsStream("Words.txt"); ...