public void processQueries(String strInputFilePath, String strOutputFilePath)
			throws IOException {

		oBufferedReader = new BufferedReader(new FileReader(strInputFilePath));
		oBufferedWriter = new BufferedWriter(new FileWriter(strOutputFilePath));
		calcuateTFIDF(oBufferedReader);
		oBufferedReader.close();
		oBufferedReader = new BufferedReader(new FileReader(strInputFilePath));
		String strLine = null;
		String strNumber = null;
		Hashtable<String, Double> oTempTermVsTFIDF = new Hashtable<String, Double>();
		while ((strLine = oBufferedReader.readLine()) != null) {
			if (strLine.trim().length() == 0)
				continue;
			if (strLine.trim().equalsIgnoreCase("</top>")) {
				writeTermsToFile(strNumber, oTempTermVsTFIDF);
			} else if (strLine.trim().startsWith("<num>")) {
				strNumber = strLine.substring(strLine.indexOf(":") + 1).trim();
			} else if (strLine.trim().startsWith("<title>")
					|| !strLine.trim().startsWith("<")) {
				if (strLine.startsWith("<title>"))
					strLine = strLine.substring(8).trim().toLowerCase();

				for (String strTerm : strLine.split(" ")) {
					if (oTermVsTFIDF.containsKey(strTerm))
						oTempTermVsTFIDF
								.put(strTerm, oTermVsTFIDF.get(strTerm));

				}

			}
		}
		System.out.println(oTempTermVsTFIDF);
		oBufferedReader.close();
		oBufferedWriter.close();
	}