, fmt='%s', delim='\\n', dest=None)

Write any object that supports iteration to a text file

  • iterator (Iterable) – Object that iterates over values to be saved.

  • fmt (str) – Format-string which is used to format the iterator’s values.

  • delim (str) – The delimiter which is inserted between values.

  • dest (Union[Path, str, None]) – Path to save at; by default, a system save-as dialog is displayed.