Reference
std/io
std/io
Standard input, output and error.
narra
import * as Io from "std/io"
The guide teaches it in chapter 11, Files and the system.
This page is generated by scripts/std/generate.nra from narrac query --json interface std/io. Do not edit it.
Functions
flush
narra
export function flush() uses io
Effects: io.
readAll
narra
export function readAll(): Result<string, string> uses io, alloc
Effects: io, alloc.
readBytes
narra
export function readBytes(count: int): Result<string, string> uses io, alloc
Effects: io, alloc.
readLine
narra
export function readLine(): Result<Option<string>, string> uses io, alloc
Effects: io, alloc.
write
narra
export function write(text: string) uses io
Effects: io.
writeError
narra
export function writeError(text: string) uses io
Effects: io.