code: public void stringToOutputStream(String content, OutputStream out) throws IOException {
          out.write(content.getBytes());
          out.close();
      }
docs: Save a string to a file.
  
  @param content the string to be written to file