Write that string to a file.
This function is more practical and efficient to use than the write-char function. Anything can be written into a file, since the format is a string. The file is specified by the file-descriptor, assigned by the open function. When the file-descriptor is left out, the string is written to the command line and Prompt History window.
Examples
Code | Returns | Prints to File |
---|---|---|
(setq fil (open "sample.lsp" "w")) | ||
(write-line "Name:" fil) | "Name:" | Name: |
(write-line "Address:" fil) | "Address:" | Address: |
Tell me about...
(setq symbol1 statement1 [symbol2 statement2] ...)
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. |