RosettaCodeData/Task/Write-entire-file/Common-Lisp/write-entire-file.lisp

6 lines
204 B
Common Lisp
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(with-open-file (str "filename.txt"
:direction :output
:if-exists :supersede
:if-does-not-exist :create)
(format str "File content...~%"))