What\'s the difference between...
File.open(\'abc\', \'w\') { |f| f.puts \'abcde\' }
...and...
File.open(\'abc\', \'w\') { |f|
puts appends a newline, write does not. Technically, puts appends the record separator (which is usually a newline) to the output if it doesn't have one at the end. write outputs only what it is given.