title: Python 3 readline() does not work
body: <p>The Text File:</p>
  
  <pre><code>username
  password
  other
  </code></pre>
  
  <p>The code: </p>
  
  <pre><code>filepass = datafile.readline(1)
  filepass.rstrip('\n')
  datafile.close()
  entered_password = input("Enter Password")
  if entered_password == filepass:
      print ("Success")
  else:
      print ("Failure")
  </code></pre>
  
  <p>Python always says "Failure" no matter what I type in. What do I need to do?
  Thanks in Advance.</p>