Input loop: Difference between revisions

Line 1,671:
}</lang>
*From standard input or a pipe, accordingly.
 
=={{header|Phix}}==
{{trans|Euphoria}}
Process text stream line-by-line:
<lang Phix>procedure process_line_by_line(integer fn)
object line
while 1 do
line = gets(fn)
if atom(line) then
exit
end if
-- process the line
end while
end procedure</lang>
 
=={{header|PHP}}==
7,805

edits