Read contents of a local file into a variable in Rails

前端 未结 3 2087
闹比i
闹比i 2021-02-03 16:54

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

3条回答
提交回复
热议问题