By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,587 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,587 IT Pros & Developers. It's quick & easy.

Equivalent string.find method for a list of strings

P: n/a
I have read a text file using the command

lines = myfile.readlines()

and now I want to seach those lines for a particular string. I was
hoping there was a way to "find" that string in a similar way as
searching simply a simple string. I want to do something like

lines.find.('my particular string')

Is there a module that already exists that allows me to do this or will
I have to created my own method?

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.