code: def add_ihex_file(self, filename, overwrite=False):
          
  
          with open(filename, 'r') as fin:
              self.add_ihex(fin.read(), overwrite)
docs: Open given Intel HEX file and add its records. Set `overwrite` to
          ``True`` to allow already added data to be overwritten.