Paul, I will check out difflib thanks.
Scott
--
http://mail.python.org/mailman/listinfo/python-list
"Catalina Scott A Contr AFCA/EVEO" <[EMAIL PROTECTED]> wrote
in message news:[EMAIL PROTECTED]
I was trying to compare each line of file1 with each line of file2. Your
solution worked perfectly.
Thanks!
Scott
===
See if the difflib module would be of any help.
-- Paul
March 06, 2006 9:48 AM
To: 'Tim Chase'
Cc: python-list@python.org
Subject: RE: help with loops
I was trying to compare each line of file1 with each line of file2. Your
solution worked perfectly.
Thanks!
Scott
-Original Message-
From: Tim Chase [mailto:[EMAIL PROTECTED]
Sen
: Re: help with loops
> I have two files and I want to pull out lines from file 2
> if certain conditions are found if file 1.
Well, I'm not quite sure from your description of the
problem if you want to compare every line in file1 against
every line in file2, or if you just want to co
> I have two files and I want to pull out lines from file 2
> if certain conditions are found if file 1.
Well, I'm not quite sure from your description of the
problem if you want to compare every line in file1 against
every line in file2, or if you just want to compare line1 of
file1 with line
Hello,
I am not having luck writing code to do what I want and
could use a hand.
I have two files and I want to pull out lines from file 2 if
certain conditions are found if file 1.
for line in readfile1:
list1 = line.split(',')
for line in readfile2:
li