How to read whole file in Ruby?

Viewed 46189

Is there an in-built function in Ruby to read the whole file without using any loop? So far, I have only come across methods that read in chunks (line or character).

3 Answers
Related