Anonymous user
Read a file line by line: Difference between revisions
Add Ruby solution
(Added D version) |
(Add Ruby solution) |
||
Line 24:
process(line)
</lang>
=={{header|Ruby}}==
<lang ruby>IO.foreach "foobar.txt" do |line|
puts line
end</lang>
=={{header|Tcl}}==
|