Commit Graph

2 Commits

Author SHA1 Message Date
3ea653b26d added file:write() & an optional mode param to os.open() 2023-09-06 17:29:38 -05:00
b3587f48a2 added os.open(); new file object
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"))
```
2023-09-05 14:38:24 -05:00