title: How to reference a text file in python
body: <p>I'm attempting to make a python program that simulates a login. The goal for the program is to write then read a text file to see if the username(User_name) and password(password) match then log you in!. <strong>My problem is its not reading the file and when it writes its on a single line</strong> for example the output to my text file  is usernameusernameusername, i'm unsure if that messes up the program when reading if the username already exists. </p>
  
  <pre><code> info = open("user_info.txt", "a+")
  user_status = input("Are you a new user (Y)es or (N)o")
  if user_status.lower() == ("y"):
      print("Welcome To Login Master 1000")
      user_name = input("Type in user name")
      if str(user_name) in info.readlines():
          print("That Name Is Taken")
      info.write(user_name) 
  </code></pre>