Anonymous user
Read a file line by line: Difference between revisions
m
→{{header|REXX}}: elided hardcoded input filename versions, elided a blank line.
m (Minor spacing fix) |
m (→{{header|REXX}}: elided hardcoded input filename versions, elided a blank line.) |
||
Line 2,699:
=={{header|REXX}}==
===belt and suspenders===
The first '''linein''' invocation is used to position the record pointer (current position in the file for reading)
Line 2,735 ⟶ 2,717:
say 'file ' fID " has " #-1 ' records.' /*display the record count summary. */
call lineout fID /*close the input file (most REXXes). */
/*stick a fork in it, we're all done. */</lang><br><br>
===ARexx version===
<lang rexx>/* Also works with Regina if you state OPTIONS AREXX_BIFS ; OPTIONS AREXX_SEMANTICS */
Line 2,750 ⟶ 2,730:
ELSE EXIT 20
CALL Close filehandle
EXIT 0</lang>
=={{header|Ring}}==
|