Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Input-loop/Phixmonti/input-loop.phixmonti
Normal file
19
Task/Input-loop/Phixmonti/input-loop.phixmonti
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue