Reading a file in Common Lisp

This commit is contained in:
Samuel Ortion 2024-06-02 19:00:21 +02:00
parent d6ee3239c8
commit b2dc08f0f4
Signed by: sortion
GPG Key ID: 9B02406F8C4FB765
1 changed files with 7 additions and 0 deletions

7
2015/days/01/lisp.lisp Normal file
View File

@ -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)))