up previous next
Close

close a device
Syntax

Close(D: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