Examveda
Examveda

How do you close a file in Ruby after performing file operations?

A. close(file)

B. File.close(file)

C. Close.file()

D. file.close()

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