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

Write any object that supports iteration to a text file.

iterator : iterator

Object that iterates over values to be saved

fmt : fmt-str

format-string which is used to format the iterator’s values

delim : str

the delimiter which is inserted between values

dest : str(path) | None

The destination; if None, a system save-as dialog is displayed