Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local fs = require "filesystem"
- local json = require "json"
- local configData = nil
- --CONFIG API--
- local config = {}
- function config:loadConfig(file_path)
- local file = fs.open(file_path, "r")
- configData = json:decode( file:read() )
- file:close()
- io.write(configData)
- end
- function config:saveConfig(file_path)
- end
- function config:set(config, key, value)
- print("SET!")
- end
- function config:get(config, key, value)
- end
- return config
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement