;;;----------------------------- ;; Should we count the last line, if it does not end with a newline? ;; This version counts: (with-open-file (stream #p"numbers.html") (loop for line = (read-line stream nil) while line count t)) ;; and this does not: (with-open-file (stream #p"numbers.html") (loop for (line missing-newline-p) = (multiple-value-list (read-line stream nil)) while line count (not missing-newline-p))) ;;; @@INCOMPLETE@@ |