πŸ“Š Ruby
Q. How can you check if a file is readable in Ruby?
  • (A) Using File.readable? method
  • (B) Using File.can_read? method
  • (C) Using File.open("filename", "r") method
  • (D) Using File.read method
πŸ’¬ Discuss
βœ… Correct Answer: (A) Using File.readable? method

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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