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 Bricscad 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]])
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |