code: public static String fileToString(File file, String charsetName) {
  		FileInputStream fileInputStream = null;
  		try {
  			try {
  				fileInputStream = new FileInputStream(file);
  				return streamToString(fileInputStream, charsetName);
  			} finally {
  				if (fileInputStream != null) {
  					fileInputStream.close();
  				}
  			}
  		} catch (Exception e) {
  			throw new RuntimeException(e);
  		}
  
  	}
docs: Transforms a file into a string.
  
  @param file
  the file to be transformed
  @param charsetName
  encoding of the file
  @return the string containing the content of the file