CoCoA:Close

From ApCoCoAWiki

Close

close a device

Description

This function closes the device D.

Example

  D := OpenOFile(<quotes>my-test</quotes>); -- open file for output from CoCoA
  Print <quotes>test</quotes> 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.)

Syntax

Close(D:DEVICE)

Introduction to IO

   <type>io</type>
   <type>printing</type>