I have tried looping through the text file but all it does is read the first line.
I tried linefilereader but it still only reads the first line.
int word_chooser = (int) (Math.random()*300);
LineNumberReader r = new LineNumberReader(new FileReader("words.txt"));
r.setLineNumber(word_chooser);
word = r.readLine();