(write-line string [file-descriptor])
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: |