File input/output: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2,980: | Line 2,980: | ||
<span style="color: #7060A8;">close<span style="color: #0000FF;">(<span style="color: #000000;">outfd<span style="color: #0000FF;">) |
<span style="color: #7060A8;">close<span style="color: #0000FF;">(<span style="color: #000000;">outfd<span style="color: #0000FF;">) |
||
<!--</syntaxhighlight>--> |
<!--</syntaxhighlight>--> |
||
=={{header|Phixmonti}}== |
|||
<syntaxhighlight lang="Phixmonti">/# Rosetta Code problem: http://rosettacode.org/wiki/File_input/output |
|||
by Galileo, 10/2022 #/ |
|||
def eof? dup -1 != enddef |
|||
"input.txt" "r" fopen |
|||
"output.txt" "w" fopen |
|||
over fgets |
|||
eof? while |
|||
over fputs |
|||
over fgets |
|||
eof? endwhile |
|||
drop fclose fclose</syntaxhighlight> |
|||
=={{header|PHP}}== |
=={{header|PHP}}== |