'Returns the text in the file.'

def text(self, encoding='utf-8', **kwargs):

    mode = ('rU' if PY2 else 'r')
    with open(self, mode=mode, encoding=encoding, **kwargs) as f:
        return f.read()
