code: def open_text(fn:PathOrStr, enc='utf-8'):
      "Read the text in `fn`."
      with open(fn,'r', encoding = enc) as f: return ''.join(f.readlines()f open_text(fn:PathOrStr, enc='utf-8'):
      "Read the text in `fn`."
      with open(fn,'r', encoding = enc) as f: return ''.join(f.readlines())
docs: Read the text in `fn`.