up previous next
1.6.1 Introduction to IO
***** NOT YET UPDATED TO CoCoA-5: follow with care *****

Input and output is implemented in CoCoA through the use of devices. At present, the official devices are: (1) standard IO (the CoCoA window), (2) text files, and (3) strings. What this means is that it is possible to read from or write to any of these places. The cases are discussed separately, below. Text files may be read verbatim or---with the source command---be executed as CoCoA commands.