code: public static void save(CharSequence chars, File file) throws IOException
    {
      save(chars, new FileWriter(Files.mkdirs(file)));
    }
docs: Create target file and copy characters into. Copy destination should be a file and this method throws access denied
  if attempt to write to a directory. This method creates target file if it does not already exist. If target file
  does exist it will be overwritten and old content lost. If given <code>chars</code> parameter is null or empty this
  method does nothing.
  <p>
  Note that this method takes care to create file parent directories.
  
  @param chars source characters sequence,
  @param file target file.
  @throws FileNotFoundException if <code>target</code> file does not exist and cannot be created.
  @throws IOException if copy operation fails, including if <code>target</code> is a directory.