Skip to main content

io_open

Function io_open 

Source
pub fn io_open(state: &mut LuaState) -> Result<usize, LuaError>
Expand description

io.open(filename [, mode]). C: io_open.

The file system is reached via GlobalState::file_open_hook (registered by lua-cli) since std::fs is banned in lua-stdlib per PORTING.md ยง1.