public void IndexReader(String filename) 
	{
		// create new file reader
		FileReader fR;
		try
		{
			// Initialise new file reader and give passed in filename
			fR = new FileReader(filename);
			//create and initialise buffered reader
			BufferedReader bR = new BufferedReader(fR);
			String indexWord;			
			int count = 0;
			try 
			{
				// keep reading in each line, assigning it to word, until equal to null 
				while((indexWord = bR.readLine()) != null)
				{
					// create empty linked list
					LinkedList contextAndLines = new LinkedList();
					// add word and linked list to hash table by calling add in IndexHashtable class
					concordanceHash.add(indexWord, contextAndLines);
					//increment count
					count++;			
				}
				bR.close();
			} 
			// handle IO Exception
			catch (IOException e) 
			{
				System.out.println("There was an error reading in the file");
			}
		}
		catch (FileNotFoundException e)
		{
			System.out.println("Error, file not found");
		}
	}