public static void ReadQuery() throws IOException{
		//Open input stream
		FileInputStream IOStream = new FileInputStream(QueryInput);
		InputStreamReader read = new InputStreamReader(IOStream); 
		BufferedReader reader = new BufferedReader(read);
		
		//read date data line by line to the end of file
		int CurMovie = 0;
		String str = new String();
		while ((str = reader.readLine()) != null){
			if (str.charAt(str.length() - 1) == ':'){
				CurMovie = Integer.parseInt(str.substring(0, str.length() - 1));
				continue;
			}
			
			int CurUser = Integer.parseInt(str);
			
			QueryPair tmp = new QueryPair();
			tmp.setMovie(CurMovie);
			tmp.setUser(CurUser);
			tmp.setRating(0);
			
			QuerySet.add(tmp);
		}
		
		reader.close();
		read.close();
		IOStream.close();
		
		QuerySet.trimToSize();
	}