M

Mr. Dubey • 52.70K Points
Coach

Q. 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
  • Correct Answer - Option(C)
  • Views: 51
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics