(close file-descriptor)


Close an open file.


This function closes access to a file that has been previously opened with the open function. Strictly speaking, it is not necessary to close files, since progeCAD does that when it exits. However, for good housekeeping, it's a good idea to use the close function.

The file-descriptor argument represents the file descriptor assigned when the file was opened using the open function. The file descriptor remains after the file is closed but is not valid.

Example

Code Returns
(close fil) nil

NOTE The file-descriptor must be assigned to a symbol using setq, so the symbol must be used with the close function as the file-descriptor.

Tell me about...

(print [expression [file-descriptor]])

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language