Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function open_bdd(path)
- local file = fs.open(path, 'r')
- local content = file.readAll()
- file.close()
- return textutils.unserialiseJSON(content)
- end
- function save_bdd(bdd, path)
- local file = fs.open(path, 'w')
- local content = textutils.serialiseJSON(bdd)
- file.write(content)
- file.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement