<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(self, filename):
 """read configdata from file. Parameters filename : string the name of the YAML formatted config file. """

        self.filename = filename
        with open(filename) as CFG:
            self.data = yaml.load(CFG.read())

        return self