From: jazzez ravi Date: 2008-07-31T13:09:00+09:00 Subject: Re: Single Line replacement in file Hi Michael Bruschkewitz , Thanks for your detailed explanation. You can read one file, filter its content, write into another file, close first file, close second file, delete first file or rename to backup, rename second file to first file. This would be the easiest way. I think this one is very simple and safety way.. Thanks. P.Raveendran RF, chennai http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.