← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236949]: How to compare the string from two different text file?

 

Question #236949 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/236949

    Status: Open => Answered

RaiMan proposed the following answer:
lines1 = open(file1).readlines()
lines2 = open(file2).readlines()

shouldFail = false
for i in range(length(lines1)):
    if not lines1[i] ==  lines1[i]:
        shouldFail = true
        break
if shouldFail:
    print "files do not have equal content"

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.