I am sure this is an easy one; I just couldn\'t find the answer immediately from Google.
I know I could do this (right?):
text = \"\" File.open(
IO.read() is what you're looking for. File is a subclass of IO, so you may as well just use:
text = File.read(path)
Can't get more intuitive than that.
What about IO.read()?
Edit: IO.read(), as an added bonus, closes the file for you.
IO.read()