Anonymous user
File input/output: Difference between revisions
m
→version 1: utilized better use of lower/uppercase names, added a comment.
(→{{header|REXX}}: deleted version 2 as it did not read the record into a variable (as per task requirement).) |
m (→version 1: utilized better use of lower/uppercase names, added a comment.) |
||
Line 2,103:
===version 1===
<lang rexx>/*REXX program to read a file and store the contents into an output file*/
call lineout
do while lines(
y = linein(
call lineout
end /*while ···*/
/*stick a fork in it, we're done.*/</lang>
===version 2===
Note that this version is limited to files less than one million bytes (and/or possibly virtual memory).
|