Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local save = function(data, name)
- if not fs.exists('/data') then
- fs.makeDir('/data')
- end
- local file = fs.open('/data/'..name, 'w')
- file.write(textutils.serialize(data))
- file.close()
- end
- save("1234567890987654321", "bkp")
Advertisement
Add Comment
Please, Sign In to add comment