Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. (defun lire-en-chaine (&aux chaine)
  2. (setq alphabet_char (open "alphabet_char" :direction :input :if-does-not-exist :error))
  3. (setq chaine "")
  4. (loop
  5. (setq ligne (read-line alphabet_char nil nil))
  6. (cond
  7. ((equal ligne nil) (close alphabet_char) (return chaine)) )
  8. (setq chaine (string-concat chaine (string (read-from-string ligne))))))
  9.  
  10.  
  11.  
  12.  
  13. (defun lire-en-vecteur (x)
  14. (setq x (lire-en-liste))
  15. ((make-array (length x) :element-type 'integer :initial-contents liste)) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement