Noeud: Input / Output, Noeud « Next »: , Noeud « Previous »: Built-In Predicates, Noeud « Up »: Built-In Predicates



Input / Output

Input / Output in DyALog is done through streams that can associated either to a file, a string or a device.

A stream can be connected to a filename or UNIX file descriptor for input or output by calling the predicate open/3.

The possible formats of a stream are:

n
A stream connected to some file. n is an integer.
symbol
where symbol has been aliased to a stream using add_stream_alias/2. Note that user_input, user_output, and user_error are by default aliased to the UNIX stdin, stdout, and stderr streams.

Shell-like expansions of filenames is provided.