Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. text_file = open("nowy_plik.txt", "w")
  2. text_file.write("Wiersz 1\n")
  3. text_file.write("Wiersz 2\n")
  4. text_file.write("Wiersz 3\n")
  5. text_file.close()
  6.  
  7.  
  8.  
  9. text_file = open("nowy_plik.txt", "r")
  10. print(text_file.read())
  11.  
  12. text_file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement