Q. Which method in Ruby is used to write data to a file?

  • (A) write()
  • (B) puts()
  • (C) print()
  • (D) <<()
πŸ’¬ Discuss
βœ… Correct Answer: (A) write()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
160
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate