Ruby - File IO
Which of the following is the correct syntax to read all lines from a file named
data.txt into an array in Ruby?data.txt into an array in Ruby?File.readlines (no underscore or plural misspelling).15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions