M
moonhkt
Hi All
I am new in Python. When using open and then for line in f .
Does it read all the data into f object ? or read line by line ?
f=open(file, 'r')
for line in f:
if userstring in line:
print "file: " + os.path.join(root,file)
break
f.close()
moonhk
I am new in Python. When using open and then for line in f .
Does it read all the data into f object ? or read line by line ?
f=open(file, 'r')
for line in f:
if userstring in line:
print "file: " + os.path.join(root,file)
break
f.close()
moonhk