From: thomas peklak Date: 2008-09-14T21:33:04+09:00 Subject: Re: insert into textfile content = File.read('test.txt') content.sub!("\n","\n\n") File.open('test.txt','w').write(content) sub does replace the first occurence of a new line in the file thomas