Examveda

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

Answer: Option A


This Question Belongs to Ruby Programming >> File Input Output In Ruby

Join The Discussion

Related Questions on File Input Output in Ruby