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.
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.