Skip to content

OutputStream

class OutputStream < Object

Output stream.

Factory Functions

Name Description
OutputStream Create an output stream for an already-open file.

Member Variables

Name Description
file:File? File handle.

Member Functions

Name Description
open Open file.
open Open file with default mode.
close Close file.
print Print string.
print Print value.
print Print value.
print Print value.
print Print vector.
print Print vector.
print Print vector.
print Print matrix.
print Print matrix.
print Print matrix.

Factory Function Details

function OutputStream(file:File) -> OutputStream

Create an output stream for an already-open file.

Member Function Details

close

function close()

Close file.

open

function open(path:String, mode:Integer)

Open file.

  • path: Path.
  • mode: Mode.

function open(path:String)

Open file with default mode.

  • path: Path.

print

function print(value:String)

Print string.

function print(value:Boolean)

Print value.

function print(value:Integer)

Print value.

function print(value:Real)

Print value.

function print(x:Boolean[_])

Print vector.

function print(x:Integer[_])

Print vector.

function print(x:Real[_])

Print vector.

function print(X:Boolean[_,_])

Print matrix.

function print(X:Integer[_,_])

Print matrix.

function print(X:Real[_,_])

Print matrix.