Examveda

Which method in Ruby is used to delete a file?

A. File.erase()

B. File.delete()

C. File.clear()

D. None of the above

Answer: Option B


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

Join The Discussion

Related Questions on File Input Output in Ruby