code: public static String readStringFromFile(String path, JavaSparkContext sc) throws IOException {
          return readStringFromFile(path, sc.sc());
      }
docs: Read a UTF-8 format String from HDFS (or local)
  
  @param path    Path to write the string
  @param sc      Spark context