code: def _text_file(self, url):
          
          try:
              with open(url, 'r', encoding='utf-8') as file:
                  return file.read()
          except FileNotFoundError:
              print('File `{}` not found'.format(url))
              sys.exit(0)
docs: return the content of a file