From: Joel Pearson Date: 2012-08-24T21:49:50+09:00 Subject: Re: Add a line into a file at multiple locations above a existing line The easiest way to do this is to read the file, edit it as a string, and overwrite the file with the modified string. -- Posted via http://www.ruby-forum.com/.