A

Admin • 828.03K Points
Coach

Q. What is the syntax to open file in ruby?

  • (A) File.open("filename", "mode")
  • (B) File.open("filename")
  • (C) File.open()
  • (D) All of the above
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
File.open("filename", "mode") is the syntax to open file in ruby.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.