0

what does this error mean ?

<built-in method read of _io.TextIOWrapper object at 0x000002712C7E91E0> I tried to write this code : with open('filename.txt') as f: print(f.read)

24th Oct 2020, 4:58 PM
Curious Ant
Curious Ant - avatar
2 Answers
+ 8
it is no error😉 it is the output of the function read. u wanted the result read()
24th Oct 2020, 5:00 PM
Oma Falk
Oma Falk - avatar
+ 6
missing parenthesis print(f.read())
24th Oct 2020, 4:59 PM
Slick
Slick - avatar