Jump to content

Input loop: Difference between revisions

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}}==
495

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.