Anonymous user
File input/output: Difference between revisions
→[[Ruby]]
Line 341:
begin
#both files are closed automatically at the end of their attached blocks
File.
File.open("input.txt") do |inputf|
outputf << inputf.
end
end
|