I have opened my existing file in r+ mode.
open("#{RAILS_ROOT}/locale/app.pot", 'r+') do |f|
end
I want to insert some other rows at specific line no.. Like i want insert "Hii " on line number 10. "hello " on line number 2. "world " on line number 20.
How may i handle it in ruby ??