I want to do this in lisp :
<code> <tab> <the true char> <tab> <In lisp representation >
65 . A . #\A
66 . B . #\B
67 . C . #\C
68 . D . #\D
69 . E . #\E
70 . F . #\F
And I want to put this into a file.
Behold what I tried to do:
Code: Select all
(defun alpha(a b f)
(setq file(open f :direction :output))
(loop
(cond
((equal a b)(return))
((print (code-char a)file)(incf a))
)))
For exemple, for (alpha 65 70 file), I'am suppose to get what I wrote before :
<code> <une tabulation> <the true char> <tab><In lisp representation >
65 . A . #\A
66 . B . #\B
67 . C . #\C
68 . D . #\D
69 . E . #\E
70 . F . #\F
I know that program alpha is false. Maybe I have to do something like this :
Code: Select all
(print (string-concat a (code-char 9)(string(code-char a) (code-char a)))
I don't know if you understand what I want to do, but all your help is needed !!!
Sorry for my english, I am actually french so ...
Thank you.