code: public static String readFileToString(File f, String encoding) throws IOException {
  		return readStreamToString(new FileInputStream(f), encoding);
  	}
docs: Reads a string from a file.
  @param f the file
  @param encoding the character encoding
  @return the string
  @throws IOException if the file contents could not be read