code: public static String getIor(String filename) throws FileNotFoundException, SecurityException, IOException {
  		FileInputStream fid = new FileInputStream(filename);
  		int nb = fid.available();
  		byte[] inStr = new byte[nb];
  		int	nbread = fid.read(inStr);
  		fid.close();
  		String	str = "";
  		if (nbread>0)
  			str = new String(inStr);
  		System.out.println(str);
  		return str.trim();
  	}
docs: ===============================================================