Input loop: Difference between revisions
Content added Content deleted
m (Fixed typo in comment of MACRO-10 example.) |
|||
Line 2,499: | Line 2,499: | ||
Or you can get the entire file as a string: |
Or you can get the entire file as a string: |
||
<lang php>$contents = file_get_contents($filename);</lang> |
<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}}== |
=={{header|PicoLisp}}== |