DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

steeve
steeve

Posted on • Updated on

Common Lisp et les fichiers

  • (with-open-file (in "filename") (read-line in))
    permet de lire la première ligne d'un fichier

  • (with-open-file (out "filename" :direction :output)
    (format out "solenodon"))

    pour Γ©crire dans un fichier

  • (uiop:read-file-string "filename")
    permet de lire tout le contenu d'un fichier sous forme de string

  • (uiop:directory-files "dirname")
    permet de lister les fichiers du dossier dirname

Top comments (0)

All DEV content is created by the community!

Hey, if you're landing here for the first time, you should know that this website is a global community of folks who blog about their experiences to help folks like you out.

Sign up now if you're curious. It's free!