Methods

openΒΆ

open(f:File, flags:Str)

Open a file and set the "fd" field to the file descriptor. Uses OPEN(2). Throws InvalidArgument if file is already open. Throws FileIOFail if an underlying error occurs.
Source: stdlib.ngs:2993

flags

Currently "r", "w" or "a" for read/write/append

Returns

f