code: public static String readFile(String input) throws Exception {
  		char[] buffer = new char[4096];
  		int len = 0;
  		StringBuilder content = new StringBuilder(4096);
  
  		if (ENCODING == null)
  			ENCODING = PropsUtil.ENCODING;
  		InputStreamReader fr = null;
  		BufferedReader br = null;
  		try {
  			fr = new InputStreamReader(new FileInputStream(input), ENCODING);
  			br = new BufferedReader(fr);
  			while ((len = br.read(buffer)) > -1) {
  				content.append(buffer, 0, len);
  			}
  		} catch (Exception e) {
  			throw new Exception(e);
  		} finally {
  			if (br != null)
  				br.close();
  			if (fr != null)
  				fr.close();
  		}
  		return content.toString();
  	}
docs: read the content from a file;
  
  @param output
  @param content
  @throws Exception