private void readRotResFile (String resFile, String AAtypes[], int rotNums[], int numResults, int numResidues){
		
		BufferedReader bufread = null;
		try {
			File file = new File(resFile);		
			FileReader fr = new FileReader(file);  
			bufread = new BufferedReader(fr); 
		}
		catch (FileNotFoundException e) {
			System.out.println("ERROR: Results File Not Found");
		}

		boolean done = false;
		String str = null;
		int resultNum = 0;

		while (!done) {
			try {
				str = bufread.readLine();
			}
			catch ( Exception e ){
			 System.out.println("ERROR: An error occurred while reading input");
			 System.exit(0);
			}

			if (str == null) // stop if we've reached EOF
				done = true;
			else if(resultNum >= numResults)
				done = true;
			else {
				for (int i=0; i<numResidues; i++){
					AAtypes[resultNum*numResidues+i] = getToken(str,2+i);
					rotNums[resultNum*numResidues+i] = new Integer((String)getToken(str,2+numResidues+i)).intValue();
				}
				resultNum++;
			}
		}
		
		if (numResults!=resultNum){
			System.out.println("Error: Not all results available for reading");
			System.exit(0);
		}
					
		// We're done reading them in
		try {
			bufread.close();
		}
		catch(Exception e)
		{}
	}