File1 open test txt for line in File1 data File1 readline print data F

1
2
3
4
5
File1=open('test.txt','r')
for line in File1:
data=File1.readline()
print(data)
File1.close()