compare two files in python

Posted by noname on Stack Overflow See other posts from Stack Overflow or by noname
Published on 2010-03-26T12:55:56Z Indexed on 2010/03/26 13:03 UTC
Read the original article Hit count: 413

Filed under:

in a.txt i have the text(line one after the other)

login;user;name
login;user;name1
login;user

in b.txt i have the text

login;user
login;user
login;user;name2

after comparing it should display in a text file as

login;user;name
login;user;name1
login;user;name2.... 

How can it be done using python?

© Stack Overflow or respective owner

Related posts about python