CoCoA:Close

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>