aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-10-25 07:09:34 -0500
committerColin Okay <colin@cicadas.surf>2022-10-25 07:09:34 -0500
commit5a9192938a81037c2f698af5fdb93d248264e401 (patch)
treef06f94e378d459af2d64c9e2103c7f1172275587
parent20c8eba7256d78dc36d215b7ddc798c24e42131e (diff)
Add: read-from-file
-rw-r--r--utilities.lisp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utilities.lisp b/utilities.lisp
index b91e345..abe10b7 100644
--- a/utilities.lisp
+++ b/utilities.lisp
@@ -92,3 +92,7 @@
(unwind-protect
(progn ,@body)
(uiop:delete-directory-tree ,dir :validate t))))
+
+(defun read-from-file (path)
+ (read-from-string
+ (alexandria:read-file-into-string path)))