Ruby - File IO
The following Ruby code is intended to add the line "Goodbye" to the end of
log.txt. What is the error?File.open('log.txt', 'w') do |file|
file.puts 'Goodbye'
end