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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to