first.py 227 Bytes Edit 1 2 3 4 5 6 7 8 9 filel=open(r"C:\Users\huawei\Desktop\test.txt",'r',encoding='utf-8') a=filel.read() print(a) filel.close() with open(r"C:\Users\huawei\Desktop\test.txt",'r',encoding='utf-8')as filel1: a=filel1.read() print(a)