Answer the question
In order to leave comments, you need to log in
Doesn't read the file to the end?
File weighs 11mb (many lines)
c = 1
with open(r'C:\Users\AKSHIN\Downloads\errr.txt','r')as f:
for i in f:
print(c)
c += 1
Answer the question
In order to leave comments, you need to log in
Pass explicit file encoding - "encoding='utf-8'"
with open(r'C:\Users\AKSHIN\Downloads\errr.txt','r',encoding='utf-8')as f:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question