All I want to do is get all the content from the local file and save it in a variable. How?
File.read(@icon.full_filename).each {|l| r += l}
only gives me some of this. In PHP, I just used file_get_contents .
ruby ruby-on-rails
Steven Xu Jun 16 '10 at 16:35 2010-06-16 16:35
source share