'Open the file in text mode, read it, and close the file.'

def read_text(self, encoding=None, errors=None):

    with self.open(mode='r', encoding=encoding, errors=errors) as f:
        return f.read()
