txt(iterator, fmt='%s', delim='\\n', dest=None)¶
Write any object that supports iteration to a text file
Iterable) – Object that iterates over values to be saved.
str) – Format-string which is used to format the iterator’s values.
str) – The delimiter which is inserted between values.