From: Paul Shapiro Date: 2009-06-23T07:30:22+09:00 Subject: Re: if column header contain regexp, delete column James Gray wrote: > On Jun 22, 2009, at 8:30 AM, Paul Shapiro wrote: > >>> James Edward Gray II >> >> I'm guessing it was incorrect to assume that the delete statement >> would >> write out to the file? How would I do that. It prints correctly. > > Yes, the delete() call deletes a column out of the in-memory table > data structure. If you want to write the result to a file, you do it > the same way you wrote it to the screen: > > open("new_data.csv", "w") do |csv| # create a file > csv.puts table # write to that > end > > Hope that helps. > > James Edward Gray II that works great, but is there a way so that it doesn't output with all of those underscores and the case change. -- Posted via http://www.ruby-forum.com/.