ex17 extra credit #3 yet more

This commit is contained in:
Dan Buch 2012-02-26 21:04:33 -05:00
parent a295260e52
commit 8c167a01e5

View File

@ -1,5 +1 @@
File.open(ARGV.first) do |infile|
File.open(ARGV[1], 'w') do |outfile|
outfile.write(infile.read)
end
end
File.open(ARGV.first) { |i| File.open(ARGV[1], 'w') { |o| o.write(i.read) }}