private ArrayList<String> getWordsFromFile(String fileName) {
    	ArrayList<String> wordsList = new ArrayList<String>();
    	
		try {
			BufferedReader rd = new BufferedReader(new FileReader(fileName));
			while (true) {
				String line = rd.readLine();
				if (line == null) {
					break;
				}
				wordsList.add(line);
			}
			rd.close(); // close when you’re done!
		} catch (IOException ex) {
			// do something in response to exception
			throw new ErrorException(ex);
		}
		
		return wordsList;
    }