Re: Create and write to a file in lisp
Edi Weitz <[email protected]> Wed, 26 Jan 2005 10:19:21 +0100
| Newsgroups | gmane.lisp.allegro |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 26 Jan 2005 00:04:01 -0000, "Paulo Dias" <[email protected]> wrote: > Please i need to know who do i create a new file and then write some text to it... (with-open-file (out "/tmp/foo.txt" :direction :output :if-exists :supersede) (write-line "Hello World!" out) (write-string "Hello again!" out) (write-char #\Newline out) (print (list 'hello 'world) out) (format out "Hello ~A!~%" (subseq "Worldcup" 0 5))) And so on... Edi.