KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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(path).each_line do |line| text += line end # Do something with text But that seems a bit excessive, doesn't it? Or is that the way one would do it in Ruby?
Tags (comma-separated)
Save Edits
Cancel