public static void readFile() {	 
		// use a bufferedReader to read the transactions into the queue
		BufferedReader br;
		try {
			br = new BufferedReader(new FileReader("assign4/" + filename));
			String line;
			while ((line = br.readLine()) != null) {
				int[] transData = new int[NUM_DATA];
				StringTokenizer st = new StringTokenizer(line);
				int count = 0;
			     while (st.hasMoreTokens()) {
			    	transData[count] = Integer.parseInt(st.nextToken());
			    	count++;			         
			    }
			    Transaction tr = new Transaction(transData[0], transData[1], transData[2]);
			    try {
					transQueue.put(tr);
				} catch (InterruptedException e) {
					System.out.println("Interrupted");
				}
//					    System.out.println(line);
			}
			br.close(); 
			
			// put as many null transactions in the queue as there are threads
			for (int j = 0; j < numThreads; j++){
				try {
					transQueue.put(nullTrans);	
				} catch (InterruptedException e) {
					System.out.println("Couldn't add nullTrans");
				}
//						System.out.println("Sucessfully Exited Main");
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
			System.out.println("File not found.");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}