Initializing help system before first use

# write, writeln

Purpose
Send an expression or list of expressions to the active output stream.
Synopsis
`procedure write(e1:expr[, e2:expr...])`
`procedure writeln`
`procedure writeln(e1:expr[, e2:expr...])`
Argument

e1, e2,... | Expression or list of expressions

Example
The following lines

    Set1:={"first", "second", "fifth"}
    write(Set1)                   ! Print set contents without return
    writeln                       ! Print an empty line
    b:=true
    writeln("A real:", strfmt(7.1234, 4, 2), ", a Boolean:",b)
    	                      ! Output followed by return

produce this output:

    {`first', `second', `fifth'}
    A real:7.12, a Boolean:true

Further information
These procedures write the given expression or list of expressions to the active output stream. The procedure writeln adds the return character to the end of the output. Numbers may be formatted using function strfmt (default formatting relies on parameters realfmt, zerotol and txtztol). Basic types are printed "as is". For elementary but non-basic types ( linctr, mpvar) only the address is printed. If the expression is a set or array, all its elements are printed.
Related topics
fwrite, fwriteln, read, readln, strfmt, formattext.
Parent Topic Predefined functions and procedures

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.