title: How to find a specific string in a .txt file Python
body: <p>I have a large textfile on my computer (location: /home/Seth/documents/bruteforce/passwords.txt) and I'm trying to find a specific string in the file. The list has one word per line and 215,000 lines/words. Does anyone know of simple Python script I can use to find a specific string?</p>
  
  <p>Here's the code I have so far,</p>
  
  <pre><code>f = open("home/seth/documents/bruteforce/passwords.txt", "r")
  for line in f.readlines():
      line = str(line.lower())
      print str(line)
      if str(line) == "abe":
          print "success!"
      else:
          print str(line)
  </code></pre>
  
  <p>I keep running the script, but it never finds the word in the file (and I know for sure the word is in the file).</p>
  
  <p>Is there something wrong with my code? Is there a simpler method than the one I'm trying to use? </p>
  
  <p>Your help is greatly appreciated.</p>
  
  <p>Ps: I'm using Python 2.7 on a Debian Linux laptop.</p>