summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/conv_cheat.lua
blob: afc87bc55b6af8c0d2a389d2269f855f15e1b7a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
xml = require("xml_conv")
json = dofile("../json/init.lua")

function readAll(file)
    local f = io.open(file, "rb")
    local content = f:read("*all")
    f:close()
    return content
end

print(json.stringify(xml.conv_cheat(readAll(arg[1]))))