Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function save(...)
- local filehandle = fs.open("appdata","w")
- filehandle.write(textutils.serialize({...}))
- filehandle.close()
- end
- function load()
- local filehandle = fs.open("appdata", "r")
- local data = filehandle.readAll();
- filehandle.close()
- return unpack(textutils.unserialize(data))
- end
- save(id, otherdata, whatever)
- id, otherdata, whatever = load()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement