Ruby - File IO
What will be the output of this Ruby code?
File.open('sample.txt', 'w') do |f|
f.puts 'Line 1'
f.puts 'Line 2'
end
puts File.read('sample.txt')