Input loop: Difference between revisions
→{{header|Picat}}
m (Fixed typo in comment of MACRO-10 example.) |
|||
Line 2,499:
Or you can get the entire file as a string:
<lang php>$contents = file_get_contents($filename);</lang>
=={{header|Picat}}==
<lang Picat>main =>
Reader = open("file.txt"),
while(not at_end_of_stream(Reader))
L = read_line(Reader),
println(L)
end,
close(Reader).</lang>
=={{header|PicoLisp}}==
|