title: Read contents of a local file into a variable in Rails
body: <p>All I want to do is get all the content from a local file and store it in a variable. How?</p>
  
  <p><code>File.read(@icon.full_filename).each {|l| r += l}</code></p>
  
  <p>only gives me a part of it. In PHP, I just used <code>file_get_contents</code>.</p>