Types
Represents a file in a file system (S_IFREG)
- Path
-
Represents file system path
Methods
close(f:File)
Close a file and sets the "fd" field to null. Uses CLOSE(2).
Throws InvalidArgument if file is not open.
Throws FileIOFail if an underlying error occurs.
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.
Str(f:File)
String representation of File