Examveda

What is the purpose of the File.exist? method in Ruby?

A. To check if the specified file is empty

B. To check if the specified file is readable

C. To check if the specified file is writable

D. To check if the specified file exists

Answer: Option D


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

Join The Discussion

Related Questions on File Input Output in Ruby