Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text_file= open ("textfile.txt", "r+")
- z =""
- while ( z!= "break\n"):
- z = raw_input ("enter your name or break to exit:")
- text_file.writelines(z)
- text_file.close()
- text_file = open ("testfile.txt", "r")
- print "The names you've entered into the text files are:", textfile.read()
- testfile.close()
Add Comment
Please, Sign In to add comment