AetherlangLib: FIO

File Input & Output (FIO) is a fairly representative name for a library.

Types

fio.file
@ a simple container for filestreams.

Functions


open filename mode @-> fio.file
@ where filename: string
@       mode: string ("r", "w", "a")
@ opens a filestream of a given type. "r" - read, "w" - write, "a" - append.

close file @-> void
@ where file: fio.file
@ closes a filestream.

fprint file arg1...argN @-> void
@ where file: fio.file
@       arg1...argN: any
@ prints arguments into a filestream.

fprintln file arg1...argN @-> void
@ where file: fio.file
@       arg1...argN: any
@ prints arguments and then "\n" into a filestream.

finput file @-> string
@ where file: fio.file
@ reads a line from a filestream, returns it as string.