Module lsh.fio

File input/output.

Functions

open (path, flags, mode) Opens the file at path with the given flags and mode.


Functions

open (path, flags, mode)
Opens the file at path with the given flags and mode.

This interface is not final. It will change in incompatible ways.

Parameters:

Returns:

    lsh.fio.fh file handle

Or

  1. nil
  2. string error

Usage:

    local sh = require 'lsh'
    
    local fh = sh.open('/etc/hostname', 'rdonly')
generated by LDoc 1.5.0 Last updated 2026-10-02 09:04:27 UTC (f69ca05)