-- write the ordered collection to a text file, replacing its content, if it exists .File~writeLines(filename, collection, 'Replace')