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 lin
This may not be the best Ruby way, but in general when I have had to do this in the past, I would open an output file with a globally unique name and go line by line reading and writing from one to the other, keeping line count along the way. (it isn't the greatest thing in the world to maintain, but it's very simple to implement)