daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Jun 23rd, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top