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 scanner = new Scanner(getClass().getResourceAsInputStream("Words.txt"));
String s = new String();
while(scanner.hasNextLine()){
s = s + scanner.nextLine();
}