TSWInstaller

JSON = require "JSON" local String1 = "" local String2 = "" local FileHandle = io.open("TSWInstallerFile1.lua") String1 = FileHandle:read("*a") FileHandle:close

local FileHandle = io.open("TSWInstallerFile2.lua") String2 = FileHandle:read("*a") FileHandle:close

local Table = JSON.DecodeJSON(String1) for k, v in pairs(Table) do  FileHandle = io.open(k, "w") FileHandle:write(v) FileHandle:close end

local lfs = require "lfs" lfs.mkdir("Images") lfs.mkdir("Images/PictureDrawFunctions")

Table = JSON.DecodeJSON(String2) for k, v in pairs(Table) do  FileHandle = io.open("Images/PictureDrawFunctions/"..k, "w") FileHandle:write(v) FileHandle:close end

print("Done") -- End of File.