Generate a function to send the content to the file specified in 'path'
        :param path:
        :return:

def generate_output_file(path):
        """
        Generate a function to send the content to the file specified in 'path'
        :param path:
        :return:
        """

        def write_file(content):
            """
            Function to do write_file operation
            :param content:
            :return:
            """
            with open(path, 'w+') as output:
                output.write(content)

        return write_file