RosettaCodeData/Task/File-input-output/Pop11/file-input-output-2.pop11

8 lines
228 B
Plaintext

lvars i_file = sysopen('input.txt', 0, true);
lvars o_file = syscreate('output.txt', 1, true);
lvars buff = inits(4096);
lvars i;
while (sysread(i_file, buff, length(buff)) ->> i) > 0 do
syswrite(o_file, buff, i);
endwhile;