AndyE7

Untitled

Oct 8th, 2024 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. local save = function(data, name)
  2. if not fs.exists('/data') then
  3. fs.makeDir('/data')
  4. end
  5. local file = fs.open('/data/'..name, 'w')
  6. file.write(textutils.serialize(data))
  7. file.close()
  8. end
  9.  
  10.  
  11. save("1234567890987654321", "bkp")
Advertisement
Add Comment
Please, Sign In to add comment