From: Roger Pack Date: 2008-06-26T11:41:36+09:00 Subject: Re: how to write in the middle of a file > Try a mode of 'r+'. The 'a' part says you want all the writes to go > the the end-of-file (whatever that happens to be at the time). Works like a charm. You rock! -R -- Posted via http://www.ruby-forum.com/.