Next Previous Up Top Contents Index

2.3 The FORMAT module

format

Function

Summary

Outputs a control string to a stream.

Signature

format stream control-string arguments => () 

Arguments

stream
An instance of <stream>. The stream to which formatted output should be sent.

control-string
An instance of <string>. A string containing format directives.

arguments
Instances of <object>.

Values

None.

Library

io

Module

format

Description

Sends output to stream according to the format directives in control-string. Each directive consumes one argument from arguments. See Section 2.2 on page 1 for a description of the control strings that can be used.

The control-string contents that are not part of any directive are output directly to stream, as if by the Streams module's write function.


System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index