I see that your code is taken from
MSDN page[
^]. They forgot to mention, that
YOU need to handle the save process by yourself, since there is no reference to Stream or byte array or something else you want to put into that file.
After checking the
result
, use something like this:
File.WriteAllText(dialog.FileName, fileText)