v2026.6.4
All Bundles
Bundle File and console I/O primitives. FileReader and FileWriter handle sequential file access; Console provides stdin/stdout operations. Included in lang.obl — no extra -lib flag needed.

OutputStream

An abstract output stream

Operations

Close # virtual

Closes the stream

method : public : virtual : Close() ~ Nil

WriteBuffer # virtual

Writes bytes from a buffer

method : public : virtual : WriteBuffer(offset:Int, num:Int, buffer:Byte[]) ~ Int

Parameters

NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferByteinput buffer

Return

TypeDescription
Intnumber of values written

WriteBuffer # virtual

Writes characters from a buffer

method : public : virtual : WriteBuffer(offset:Int, num:Int, buffer:Char[]) ~ Int

Parameters

NameTypeDescription
offsetIntdestination buffer offset
numIntnumber of values to write
bufferCharinput buffer

Return

TypeDescription
Intnumber of values written

WriteByte # virtual

Writes a byte

method : public : virtual : WriteByte(b:Int) ~ Bool

Parameters

NameTypeDescription
bIntbyte to write

Return

TypeDescription
Booltrue if byte was written, false otherwise

WriteString # virtual

Writes a character string

method : public : virtual : WriteString(str:System.String) ~ Nil

Parameters

NameTypeDescription
strStringstring to be written