namespace
System
Low-level file and process access — raw file handles, reading a character, and running a shell command. Outside the deterministic simulation. For command-line arguments, environment variables, the exit code, and the standard streams, use the Os namespace.
System.run(command) -> intRun a shell command.System.read_char() -> intRead one byte from standard input.System.file_open(path, mode) -> pointerOpen a file.System.file_read(file, buf, n) -> intRead bytes from a file.System.file_write(file, buf, n) -> intWrite bytes to a file.System.file_seek(file, offset, whence) -> intMove a file's read/write position.System.file_tell(file) -> intThe current file position.System.file_close(file) -> voidClose a file.