articulate-common-lisp / articulate-common-lisp.github.io

docs/specs for a tutorial site for a Common Lisp environment
http://articulate-lisp.com/
103 stars 14 forks source link

Reading a text file snippet is too convoluted ? #71

Closed vindarel closed 1 year ago

vindarel commented 5 years ago

Indeed, it turns out we have uiop at help:

(uiop:read-file-string "file.txt")

or read-file-lines,

when your snippet is longer (http://articulate-lisp.com/examples/snippets.html, bottom)

pnathan commented 5 years ago

I've generally avoided directly relying on libraries - in Snippets, it's aimed to be partially showing the way of lisp. But perhaps that's not ideal and the uiop alternative should be presented as well?