code: public static void write( String content,
                                File file ) throws IOException {
          CheckArg.isNotNull(file, "destination file");
          if (content != null) {
              write(content, new FileOutputStream(file));
          }
      }
docs: Write the entire contents of the supplied string to the given file.
  
  @param content the content to write to the stream; may be null
  @param file the file to which the content is to be written
  @throws IOException
  @throws IllegalArgumentException if the stream is null