Ruby - Error Handling
What will this Ruby code print?
begin
file = File.open('missing.txt')
rescue Errno::ENOENT
puts 'File not found'
endbegin
file = File.open('missing.txt')
rescue Errno::ENOENT
puts 'File not found'
endErrno::ENOENT error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions