From: Marc Heiler Date: 2006-10-09T03:49:23+09:00 Subject: Re: how to concatenate all the lines into one string Or maybe File.readlines("xorg.conf").join(' ').gsub!("\n",' ') -- Posted via http://www.ruby-forum.com/.