<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_file(self, filename):
 """Read in file contents and set the current string."""

        with open(filename, 'r') as sourcefile:
            self.set_string(sourcefile.read())