Noeud: Input / Output, Noeud « Next »: Arithmetic, Noeud « Previous »: Built-In Predicates, Noeud « Up »: Built-In Predicates
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
symbol
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.