code: public static String readFile(File file, String charsetName) throws IOException {
  		byte[] bytes = readAllBytes(file.toPath());
  		return new String(bytes, charsetName);
  	}
docs: ------------------------------------------------------------------------