def save_to_filename(self, file_name, sep='\n'):
        fp = open(file_name, 'wb')
        n = self.save_to_file(fp, sep)
        fp.close()
        return n

    # for backwards compatibility
Read all messages from the queue and persist them to local file.
dataset/ETHPy150Open darcyliu/storyboard/boto/sqs/queue.py/Queue.save_to_filename