Guest User

Untitled

a guest
Jun 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1.  
  2.  
  3. text_file= open ("textfile.txt", "r+")
  4.  
  5. z =""
  6.  
  7. while ( z!= "break\n"):
  8. z = raw_input ("enter your name or break to exit:")
  9. text_file.writelines(z)
  10.  
  11.  
  12. text_file.close()
  13.  
  14. text_file = open ("testfile.txt", "r")
  15. print "The names you've entered into the text files are:", textfile.read()
  16. testfile.close()
Add Comment
Please, Sign In to add comment