Examveda
Examveda

What is the purpose of the File.readlines() method in Ruby?

A. To delete all lines from a file

B. To write all lines of a file from an array

C. To read all lines of a file into an array

D. To read a specific line from a file

Answer: Option C


This Question Belongs to Ruby Programming >> File Input Output In Ruby

Join The Discussion

Related Questions on File Input Output in Ruby