Jump to content

Read a file line by line: Difference between revisions

(→‎{{header|Common Lisp}}: : indentation and file name correction)
Line 330:
}</lang>
=={{header|Common Lisp}}==
<lang lisp>(with-open-file (input "file.txt")
(with-open-file (input "file.txt")
(loop for line = (read-line input nil)
while line do (format t "~a~%" line)))</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.