Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local f = fs.open("secret/SCP", "r")
- local rawdata = f.readAll()
- f.close()
- local fn, err = load(rawdata, "@PotatOS SCP database")
- if not fn then
- error(("Error loading database: %s. Please update, clean up any infohazardous anomalies, and try again."):format(err))
- end
- local data = fn()
- while true do
- write "Lookup entry: "
- local entry = data[tonumber(read())]
- if not entry then printError "Not found or higher clearance required."
- else
- textutils.pagedPrint(entry)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement