<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read(self, size=-1):
 """Read 'size' bytes from file, or until EOF is reached."""

        if size < 0 and self._offset:
            size = self._size
        return self._fh.read(size)