Cat.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Last edited by Peter Kessler, December 19, 1985 1:33:02 pm PST
DIRECTORY
IO USING [STREAM],
Rope USING [ROPE];
Procedures for copying a multiple input streams to an output stream. These are mostly designed to be used in command lines to concatenate files into a command pipeline.
Cat: CEDAR DEFINITIONS = {
FromNames: PROCEDURE [in: IO.STREAM, nameList: LIST OF Rope.ROPE, out: IO.STREAM]
RETURNS [result: REFNIL, msg: Rope.ROPENIL];
takes a list of names (in addition to input and output streams), and copies each of the named files to the output stream. If no file names are given, or if "-" is used as a file name, the given input stream is used as the stream.
FromStreams: PROCEDURE [streamList: LIST OF IO.STREAM, out: IO.STREAM]
RETURNS [result: REFNIL, msg: Rope.ROPENIL];
takes a list of already opened input streams and an output stream, and copies the input streams to the output stream.
}.