Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- pass1 = "edit"
- pass2 = "lock"
- term.clear()
- term.setCursorPos(1,1)
- print("password")
- pass = read("*")
- if pass == pass1 then
- shell.run("rom/programs/delete", "edit")
- shell.run("rom/programs/delete", "delete")
- elseif pass == pass2 then
- file = fs.open("delete", "w")
- file.writeLine("print()")
- file.close()
- file = fs.open("edit", "w")
- file.writeLine("print()")
- file.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment