Read a file one line at a time,
as opposed to reading the entire file at once.



Related tasks

 Read a file character by character
 Input loop.


local(f) = file('foo.txt')
handle => {#f->close}
#f->forEachLine => {^ 
    #1
    '<br>' // note this simply inserts an HTML line break between each line.
^}