mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-24 08:01:05 +00:00
CPunch
b3587f48a2
eg. ```lua local err, file = os.open("LICENSE.md") if err then // do error handling stuff end // passing "a" to read() will read the whole file print(file:read("a")) ```
10 lines
142 B
Plaintext
10 lines
142 B
Plaintext
|
|
local err, file = os.open("LICENSE.md")
|
|
print("made file")
|
|
if err then
|
|
print("failed to open file")
|
|
end
|
|
|
|
print(file)
|
|
print(file:read("a"))
|