code: def read_text(self, encoding='utf-8') -> str:
          ''' read all text into memory. '''
          with self.open('r', encoding=encoding) as fp:
              return fp.read(f read_text(self, encoding='utf-8') -> str:
          ''' read all text into memory. '''
          with self.open('r', encoding=encoding) as fp:
              return fp.read()
docs: read all text into memory.