Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local h = fs.open("id", "w")
- textutils.slowWrite("enter the id of the door control computer: ",10)
- id = read()
- h.write(id)
- h.close()
- local w = fs.open("id", "r")
- id3 = w.readLine()
- id2 = tonumber(id3)
- textutils.slowPrint("the id written to file is: "..id2)
- w.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement