Cosmo/examples/reader.cosmo

7 lines
110 B
Plaintext

local err, file = os.open("LICENSE.md")
if err then
print("failed to open file")
end
print(file:read("a"))