contents = readlines(myfile, 'r')
Ok, I'm under the impression this is a list of strings (array)
How in the world do I cycle through them looking for words?

for line in contents:
     if line.contains("something")
         print line

Thats a mock up of what I'm looking for.
I tried to figure out how to use re, but that spits out locations in memory or none it seems.

Thanks.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to