* normal string array.
* This array is then sent to the WriteToFile class, where the dictionary
* file is truncated and rewritten.
*/
public boolean removeWord(String word) {
ReadFile reader = new ReadFile();
WriteToFile writer = new WriteToFile();
ArrayList<String> allWords = new ArrayList<String>();
boolean wordRemoved = false;
String path = "dictionary.txt";
allWords = reader.readFromFile(path);
allWords.removeAll(Collections.singleton(null));
System.out.println("old size: " + allWords.size());