diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..3b25d8d --- /dev/null +++ b/init.lua @@ -0,0 +1,18 @@ +local socket = require "socket" +local serialization = require "serialization" + +local config = {} + +function loadconfig() + local f = io.open("config.lua","rb") + local content = f:read("*a") + f:close() + config = serialization.unserialize(dat) +end + +function saveconfig() + local newconfig = serialization.serialize(config) + local f = io.open("config.lua","rb") + f:write(newconfig) + f:close() +end