From b2dc08f0f4dfc51a8e50ca89a4a046d727a4bce4 Mon Sep 17 00:00:00 2001 From: Samuel Ortion Date: Sun, 2 Jun 2024 19:00:21 +0200 Subject: [PATCH] Reading a file in Common Lisp --- 2015/days/01/lisp.lisp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 2015/days/01/lisp.lisp diff --git a/2015/days/01/lisp.lisp b/2015/days/01/lisp.lisp new file mode 100644 index 0000000..40dd496 --- /dev/null +++ b/2015/days/01/lisp.lisp @@ -0,0 +1,7 @@ +;; Day 1: Not Quite Lisp + +(with-open-file (in "./data/input") + (do ((char (read-char in nil) + (read-char in nil))) + ((null char)) + (print char)))