def save_file(self, file): file_content = "" for word in self.dictionary: file_content += word + "\n" FileAccess.save_file(file_content)