Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function create(fileName,data)
- local file=fs.open(fileName,"w")
- file.write(textutils.serialize(data))
- file.close()
- end
- function read(fileName)
- local file = fs.open(fileName,"r")
- local data = file.readAll()
- file.close()
- return textutils.unserialize(data)
- end
Advertisement
Add Comment
Please, Sign In to add comment