def read_text(self, encoding: Optional[str]=None) -> str:
    'Returns the file content as string.'
    return self.read_bytes().decode(encoding=(encoding or 'utf-8'))
Returns the file content as string.
def read_text(self, encoding: Optional[str]=None) -> str:
    
    return self.read_bytes().decode(encoding=(encoding or 'utf-8'))