code: public static String readContentAsString(File file, String encoding) {
          try {
              return readContentAsString(new FileInputStream(file), encoding);
          } catch (FileNotFoundException e) {
              throw new RuntimeException(e);
          }
      }
docs: Read file content to a String
  
  @param file The file to read
  @return The String content