code: public boolean readOptions() {
  	String filename = modelDir + File.separator + optionFile;
  	BufferedReader fin = null;
  	String line;
  	
  	try {
  	    fin = new BufferedReader(new FileReader(filename));
  
  	    System.out.println("Reading options ...");
  	    	    
  	    // read option lines
  	    while ((line = fin.readLine()) != null) {
  		String trimLine = line.trim();
  		if (trimLine.startsWith("#")) {
  		    // comment line
  		    continue;
  		}
  		
  		StringTokenizer strTok = new StringTokenizer(line, "= \t\r\n");
  		int len = strTok.countTokens();
  		if (len != 2) {
  		    // invalid parameter line, ignore it
  		    continue;
  		}
  		
  		String strOpt = strTok.nextToken();
  		String strVal = strTok.nextToken();
  		
  		if (strOpt.compareToIgnoreCase("order") == 0) {
  		    int numTemp = Integer.parseInt(strVal);
  		    order = numTemp;
  		}		
  	    }
  	    
  	    System.out.println("Reading options completed!");
  	
  	} catch (IOException e) {
  	    System.out.println("Couldn't open and read option file: " + optionFile);
  	    System.out.println(e.toString());
  	    return false;
  	}
  	
  	return true;	
      }
docs: Read options.
  
  @return true, if successful