Jump to content

Read a file line by line: Difference between revisions

no edit summary
(Added Frink)
No edit summary
Line 632:
puts line
end</lang>
 
=={{header|Scheme}}==
<lang scheme>; Commented line below should be uncommented to use read-line with Guile
;(use-modules (ice-9 rdelim))
 
(define file (open-input-file "input.txt"))
(do ((line (read-line file) (read-line file))) ((eof-object? line))
(display line)
(newline))</lang>
 
=={{header|Tcl}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.