lispdoc - results for with-output-to-file |
(alexandria.0.dev:with-output-to-file (stream-name file-name &rest args &key (direction nil direction-p) &allow-other-keys) &body body) | Function: Evaluate BODY with STREAM-NAME to an output stream on the file FILE-NAME. ARGS is sent as is to the call to OPEN except EXTERNAL-FORMAT, which is only sent to WITH-OPEN-FILE when it's not NIL.
|
(with-output-to-string (var &optional string &key (element-type ''character)) &body forms-decls) | Undocumented
|
Example:(defun process-coords (input) (with-output-to-string (s) (format-number s input))) | Mentioned in: CLtL2 - 21.2. Creating New Streams CLtL2 - 21.3. Operations on Streams CLtL2 - 9.1. Declaration Syntax HyperSpec - Macro WITH-OUTPUT-TO-STRING On Lisp - Symbols and Strings PCL - other kinds of io PCL - strings in binary files Successful Lisp - chapter19 |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |