Kernighans large earthquake problem: Difference between revisions
Content added Content deleted
Line 775: | Line 775: | ||
%f |
%f |
||
dup "r" fopen |
dup "r" fopen !f |
||
$f 0 < ( [drop "Could not open '" print print "' for reading" print -1 end ] [drop] ) if |
|||
[dup split 3 get tonum 6 |
[dup split 3 get tonum 6 > ( [drop print nl] [drop drop] ) if] |
||
[ |
[$f fgets dup -1 #] |
||
while |
while |
||
drop |
drop |
||
$f fclose |
|||
"End " input</lang> |
"End " input</lang> |