Advertisement
maxsar

dopiszdopliku

Dec 21st, 2020 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. nazwa = ""
  2. kolor = ""
  3. filename = "block_colors.txt"
  4.  
  5. print("podaj nazwe:")
  6. nazwa = read()
  7. print("podaj kolor:")
  8. kolor = read()
  9.  
  10. if fs.exists(filename) then
  11. file = fs.open(filename,"r")
  12. temp = file.readAll()
  13. file.close()
  14.  
  15. file = fs.open(filename,"w")
  16. file.write(temp .."\n")
  17. file.writeLine(nazwa)
  18. file.writeLine(kolor)
  19.  
  20. file.close()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement