RosettaCodeData/Task/Input-loop/Euphoria/input-loop.euphoria

11 lines
213 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
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