diff --git a/ex17-ec.rb b/ex17-ec.rb index b4c5170..5169d0b 100644 --- a/ex17-ec.rb +++ b/ex17-ec.rb @@ -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) }}