Jump to content

Input loop: Difference between revisions

m (→‎{{header|ML/I}}: delete empty markup)
Line 2,517:
<span style="color: #008080;">end</span> <span style="color: #008080;">procedure</span>
<!--</syntaxhighlight>-->
 
=={{header|Phixmonti}}==
<syntaxhighlight lang="Phixmonti">/# Rosetta Code problem: http://rosettacode.org/wiki/Input_loop
by Galileo, 10/2022 #/
 
include ..\Utilitys.pmt
 
def eof? dup -1 == enddef
 
"input.txt" "r" fopen
( inf 0 -1 ) for drop
dup fgets eof? if drop exitfor else print endif
endfor
fclose
 
 
"input.txt" "r" fopen
eof? not while
dup fgets eof? if drop false else print true endif
endwhile
fclose</syntaxhighlight>
 
=={{header|PHP}}==
57

edits

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