Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nazwa = ""
- kolor = ""
- filename = "block_colors.txt"
- print("podaj nazwe:")
- nazwa = read()
- print("podaj kolor:")
- kolor = read()
- if fs.exists(filename) then
- file = fs.open(filename,"r")
- temp = file.readAll()
- file.close()
- file = fs.open(filename,"w")
- file.write(temp .."\n")
- file.writeLine(nazwa)
- file.writeLine(kolor)
- file.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement