I Have A Hungarian Text Iso-8859-2 And I Would The Text Read Into A File But Does Not Work In Python3
The code here is: f = open('nametext','r') print(f) f.close() but when I look at the print, there is not what I want: <_io.TextIOWrapper name='nametext' mode='r' encoding='UTF-
Solution 1:
As was mentioned in the comments, you need to .read()
the file:
with open('nametext','r') as f:
print(f.read())
Post a Comment for "I Have A Hungarian Text Iso-8859-2 And I Would The Text Read Into A File But Does Not Work In Python3"