def read(self, size=-1):
        try:
            while size < 0 or len(self.readbuf) < size:
                self._next_chunk()
        except EOFError:
            pass
        if size > 0:
            ret = self.readbuf[:size]
            self.readbuf = self.readbuf[size:]
        elif size < 0:
            ret = self.readbuf
            self.readbuf = ''
        elif size == 0:
            ret = ''
        self.pos += len(ret)
        return ret
Read data from the file.
dataset/ETHPy150Open nandhp/python-imdb/imdb/chunkedfile.py/ChunkedFile.read