-- there are no file permissions in computercraft.
-- if a file exists, it can be read.
for _, f in ipairs({...}) do
local fh = fs.open(shell.dir().."/"..f, "r")
if fh then
print(fh.readAll())
fh.close()
else
print("cat: ", f, ": No such file or directory")
end
end