public InvertedFile(String fileName) throws FileNotFoundException {
		this.words = new HashMap<String, List<Integer>> (); // Initialize this.words

		Scanner s = new Scanner(new File(fileName)); // Build a Scanner that reads from fileName

		String file = ""; // This variable will store the contents of the file
		for (; s.hasNext(); file += s.nextLine() + "\n"); // Read the file into a string

		String[] docs = file.split("\n\\*\n"); // Split the file into documents by each asterisk (including the newlines before and after it)

		for (int i = 0; i < docs.length; i ++) { // This loop will go through all of the documents
			for (String word : docs[i].split(" |\n")) { // Go through each word in the current document as split by either a space or a newline
				this.add(word, i + 1); // Add the current word to the inverted file with the document number as i + 1
			}
		}
	}