file comparison

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


On Fri, Jul 31, 2009 at 7:25 PM, learner learner <pyvault2.6 at gmail.com>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: <http://mail.python.org/pipermail/python-list/attachments/20090731/ab6e2777/attachment.html>


More information about the Python-list mailing list