articulate-common-lisp.github.io icon indicating copy to clipboard operation
articulate-common-lisp.github.io copied to clipboard

Reading a text file snippet is too convoluted ?

Open vindarel opened this issue 6 years ago • 1 comments

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)

vindarel avatar May 23 '19 14:05 vindarel

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?

pnathan avatar May 23 '19 16:05 pnathan