From: Paul Mena Date: 2012-12-21T23:15:52+09:00 Subject: Re: trying to strip characters from a line This finally worked, although it's certainly not elegant: n_rows.times do begin file = File.open("archive.html", "a") line = rs.fetch_row.to_s line.gsub! '[', '' line.gsub! '"', '' line.gsub! ']', '' line.gsub! ',', '' file.write(line) file.puts "
" end end Thanks once again to everyone for their suggestions. -- Posted via http://www.ruby-forum.com/.