[Tutor] Possible to search text file for multiple string values at once?

2009-01-23 Thread Scott Stueben
Hi all, I understand that python excels at text processing, and wondered if there is a way to use python to accomplish a certain task. I am trying to search large text files for multiple strings (like employee ID number, or name). Any text editor (I use Windows mostly) will certainly have a "fin

Re: [Tutor] Possible to search text file for multiple string values at once?

2009-01-23 Thread Scott Stueben
would process the search and output all lines to a file. Something like that is what I am imagining, but I am open to suggestions on items that may be easier to use or code. Is that reasonably simple to code for a beginner? Thanks again, Scott On Fri, Jan 23, 2009 at 11:52 AM, Kent Johnson wrote:

Re: [Tutor] Possible to search text file for multiple string values at once?

2009-01-24 Thread Scott Stueben
Excellent ideas...thanks to you all for the input. I will see what I can work out in the next few days and report back. :) Scott On Sat, Jan 24, 2009 at 2:16 AM, spir wrote: > Le Fri, 23 Jan 2009 14:45:32 -0600, > W W a écrit : > >> On Fri, Jan 23, 2009 at 1:11 PM, Scot

Re: [Tutor] Possible to search text file for multiple string values at once?

2009-01-27 Thread Scott Stueben
same filename to write to (File C), thus leaving only the prompt for the file to be searched (File B). The user would be responsible for listing the search term variables into File A prior to running the script. Is this simple enough? Scott On Sat, Jan 24, 2009 at 8:43 PM, Scott Stueben wrote