code: public static String readFileAsString(File fileName) throws IOException {
          try (Scanner sc = new Scanner(fileName, Charset.defaultCharset().name())) {
              sc.useDelimiter("\\A");
              return sc.next();
          }
      }
docs: Reads whole content of file to String
  
  @param fileName Existing file
  @return File content
  @throws IOException Thrown if data couldn't be loaded