Python readlines string issue
Question: 
    import os
    fname = "input1.txt"
    
    if os.path.isfile(fname):
            f = open("input1.txt", "r")
    
        for row in f.readlines():
                if "logging failed" in row:
                        print "the file does say 'logging failed' in it"
                else:
                        print "the file doesn\'t say 'logging failed' in it"
    

My `input1.txt` says **logging failedtest** so how can i make it notice the
"test" so that it should only printout logging failed if the text doesnt have
any additional characters?

EDIT: sorry for bad english, what I meant is: If input1.txt has only "logging
failed", then it should print out 'file does say it'. If it has any other
characters (for example 'logging faaaailed' or 'logging failed1', then it
should print out that 'it doesnt say logging failed'. Now it just reads that
there is logging failed and ignores any other characters in the input1.txt


Answer: Maybe I'm missing something, but why can't you explicitly compare _row_ to the
string _"logging failed"_ ?

eg. `if row == "logging failed"`

