def do_append_to_file(self, parsed_command):
        r = None
        if parsed_command.line_range.is_empty:
            # If the user didn't provide any range data, Vim writes whe whole buffer.
            r = R(0, self._view.size())
        else:
            r = parsed_command.line_range.resolve(self._view)

        fname = parsed_command.command.target_file

        if not parsed_command.command.forced and not os.path.exists(fname):
            show_error(VimError(ERR_CANT_WRITE_FILE))
            return

        try:
            with open(fname, 'at') as f:
                text = self._view.substr(r)
                f.write(text)
            # TODO: make this `show_info` instead.
            show_status('Appended to ' + os.path.abspath(fname))
            return
        except __HOLE__ as e:
            print('Vintageous: could not write file')
            print('Vintageous ============')
            print(e)
            print('=======================')
            return
dataset/ETHPy150Open guillermooo/Vintageous/ex_commands.py/ExWriteFile.do_append_to_file