Examveda

How can you get the absolute path of a file in Ruby?

A. Using File.real_path method

B. Using File.expand_path method

C. Using File.path method

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