RosettaCodeData/Task/File-input-output/Zkl/file-input-output-1.zkl

4 lines
165 B
Plaintext

var d=File("input.txt").read();
(f:=File("output.txt","w")).write(d); f.close(); // one read, one write copy
File("output.txt").pump(Console); // verify by printing