File input/output: Difference between revisions

m
Added the Sidef language
No edit summary
m (Added the Sidef language)
Line 2,281:
copyFile("input.txt", "output.txt");
end func;</lang>
 
=={{header|Sidef}}==
<lang ruby>var in = %f'input.txt'.open_r;
var out = %f'output.txt'.open_w;
 
in.each { |line|
out.print(line);
};</lang>
 
=={{header|Slate}}==
2,747

edits