Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("colors:")
- print("1. orange")
- print("2. black")
- print("enter a number")
- io.write("> ")
- a = io.read()
- if a == "1" then
- file = fs.open("/home/gui/data", "w")
- file.write("orange")
- file.flush()
- file.close()
- else
- file = fs.open("/home/gui/data", "w")
- file.write("black")
- file.flush()
- file.close()
- end
- shell.run("/home/gui/desktop")
Advertisement
Add Comment
Please, Sign In to add comment