πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) To read all lines of a file into an array

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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