file comparison

Xavier Ho contact at
Fri Jul 31 11:34:58 CEST 2009

On Fri, Jul 31, 2009 at 7:25 PM, learner learner <pyvault2.6 at>wrote:

> Hi all,
> I want to compare two text files line by line and eliminate the
> matching/repeated line and store the unmatched/leftout lines into a third
> file or overwrite into one of them.

Sounds like homework to me. Why not look into:

- the file() function and its methods.

It's in the documentation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list