M

Mr. Dubey • 52.74K Points
Coach

Q. How do you read the entire contents of a file into a string in Ruby?

  • (A) file.gets()
  • (B) file.readlines()
  • (C) file.read()
  • (D) file.each_line()
  • Correct Answer - Option(C)
  • Views: 48
  • 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