Dumping collection to file.