public ArrayList<Posting> ReadPostingFromFile() throws Exception{
		if(Stopwords.getInstance().containKey(this.term))
			return null;
		
		ArrayList<Posting> postings = new ArrayList<Posting>();
		String path = "";
		
		// Get the right path
		// Based on field: body OR title
		if(this.isBody)
			if(this.term.endsWith(".body"))
				path = ENV.BODYDIR + File.separator + this.term.substring(0, this.term.indexOf(".body")) + ".inv";
			else
				path = ENV.BODYDIR + File.separator + this.term + ".inv";
		else
			path = ENV.TITLEDIR + File.separator + this.term + ".inv";
		
		// Try opening the inverted list file
		// Return null if the term does not exist
		BufferedReader br = null;
		try{
			br = new BufferedReader(new FileReader(path));	
		}catch(Exception e){
			if(br != null)
				br.close();
			return null;
		}
		String line = "";
		br.readLine();
		// Read file to memory
		while((line = br.readLine()) != null){
			int docID = Integer.parseInt(line.substring(0, line.indexOf(' ')));
			line = line.substring(line.indexOf(' ') + 1, line.length());
			int freq = Integer.parseInt(line.substring(0, line.indexOf(' ')));
			Posting pst = new Posting(docID, freq);
			postings.add(pst);
		}
		br.close();
		
		return postings;
	}