Ruby - File IO
In Ruby, what type of value does
File.read('file.txt') return?File.read('file.txt') return?File.read reads the entire content of the file as a single string.File.readlines return an array of lines, but File.read returns one string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions