Vidyalelo
Ruby Programming · Q15

File Input Output in Ruby

Programming · Ruby Programming · question 15

Q15

Which method in Ruby is used to delete a file?

A.
File.erase()
B.
File.delete()
Answer
C.
File.clear()
D.
None of the above

Answer: Option B

Solution

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