# where f is the file alias with open(r"path ofile.txt", encoding='UTF8') as f: contents = f.read() print(contents)