All I want to do is get all the content from a local file and store it in a variable. How?
File.read(@icon.full_filename).each {|l| r += l}
only giv
I think you should consider using IO.binread("/path/to/file") if you have a recent ruby interpreter (i.e. >= 1.9.2)
IO.binread("/path/to/file")
You could find IO class documentation here http://www.ruby-doc.org/core-2.1.2/IO.html
IO