previous  next
Close
Syntax
Close(D:DEVICE)
Summary
close a device
Description
This function closes the device D.

Example

D := OpenOFile('my-test'); -- open file for output from CoCoA
Print 'test' On D;  -- write to my-file
Close(D);  -- close the file
Close(DEV.STDIN);  -- close the standard input device
-- Bye

(Close(DEV.OUT) suppresses all output to the CoCoA window.)
See also: