def read(self):
        datafile = User.User.OwnFile(self._name, ".userdata")
        try:
            with open(datafile, "rb") as f:
                return f.read(self.size)
        except IOError:
            try:
                if not hasattr(self, '__reserved'):
                    Util.InitStruct(self)
                self.userid = self._name
                data = self.pack(False)
                with open(datafile, "wb") as f:
                    f.write(data)
                return data
            except __HOLE__:
                return None
dataset/ETHPy150Open HenryHu/pybbs/UserMemo.py/UserMemo.read