Vidyalelo
Ruby Programming · Q11

File Input Output in Ruby

Programming · Ruby Programming · question 11

Q11

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board