Ruby - File IO
What is wrong with this Ruby code snippet?
Assume the file
content = File.read('missing.txt')
puts contentAssume the file
missing.txt does not exist.content = File.read('missing.txt')
puts contentmissing.txt does not exist.File.read raises an exception (Errno::ENOENT).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions