Creeper9207

COS:custom

Feb 22nd, 2015
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. shell.run("clear")
  2. print("colors:")
  3. print("1. orange")
  4. print("2. black")
  5. print("enter a number")
  6. io.write("> ")
  7. a = io.read()
  8. if a == "1" then
  9. file = fs.open("/home/gui/data", "w")
  10. file.write("orange")
  11. file.flush()
  12. file.close()
  13. else
  14. file = fs.open("/home/gui/data", "w")
  15. file.write("black")
  16. file.flush()
  17. file.close()
  18. end
  19. shell.run("/home/gui/desktop")
Advertisement
Add Comment
Please, Sign In to add comment