Reputation: 27
I am new to LISP, and I am having trouble in writing a text file. I have read through the cookbook and other tutorials, as well as the following examples here, but I keep getting the same error:
"Incorrect keyword arguments in (:DIRECTION
:OUTPUT
:IF-EXSISTS
:SUPERCEDE
:IF-DOES-NOT-EXSIST
:CREATE) .
[Condition of type CCL::SIMPLE-PROGRAM-ERROR]"
my code is as follows:
(defun writeTest()
(with-open-file (str "numbers.txt"
:direction :output
:if-exsists :supercede
:if-does-not-exsist :create)
(format str "printing to a file")))
Any help with this is greatly appreciated!
Upvotes: 1
Views: 56