diff --git a/modules/lib/shutil.lua b/modules/lib/shutil.lua index 38e5207..6584097 100644 --- a/modules/lib/shutil.lua +++ b/modules/lib/shutil.lua @@ -4,3 +4,8 @@ mkdir=fs.mkdir function ls(p) for k,v in ipairs(fs.list(p)) do print(v) end end +function cat(p) + local f=io.open(p) + print(f:read("*a")) + f:close() +end