<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_ihex_file(self, filename, overwrite=False):
 """Open given Intel HEX file and add its records. Set `overwrite` to ``True`` to allow already added data to be overwritten. """


        with open(filename, 'r') as fin:
            self.add_ihex(fin.read(), overwrite)