added a cat() function to shutil
This commit is contained in:
parent
3d932ac480
commit
fcaf9dff75
@ -4,3 +4,8 @@ mkdir=fs.mkdir
|
|||||||
function ls(p)
|
function ls(p)
|
||||||
for k,v in ipairs(fs.list(p)) do print(v) end
|
for k,v in ipairs(fs.list(p)) do print(v) end
|
||||||
end
|
end
|
||||||
|
function cat(p)
|
||||||
|
local f=io.open(p)
|
||||||
|
print(f:read("*a"))
|
||||||
|
f:close()
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user