><a href="https://github.com/janet-lang/janet/blob/73334f3/src/core/io.c#L153">source</a></span> <pre class="binding-text">(file/open path &amp;opt mode buffer-size)

Open a file. `path` is an absolute or relative path, and `mode` is a set of flags indicating the mode to open the file in. `mode` is a keyword where each character represents a flag. If the file cannot be opened, returns nil, otherwise returns the new file handle. Mode flags:

* r - allow reading from the file

* w - allow writing to the file
