title: Using CSV Class to parse a .csv file in Ruby
body: <p>I'm using Ruby 1.9.3 and I've discovered the CSV class, but I can't get it to work. Basically, I want to be able to manipulate the various options for the CSV, and then pull a .csv file into an array to work with, eventually pushing that array back out into a new file.</p>
  
  <p>This is what I have currently:</p>
  
  <pre><code>require 'csv'
  CSV_Definition = CSV.New(:header_converters =&gt; :symbol)
  
  CSV_Total = CSV.Read(File.Path("C:\Scripts\SQL_Log_0.csv"))
  </code></pre>
  
  <p>However, I don't think this is the right way to change the <code>:header_converters</code>. Currently I can't get IRB working to parse these pieces of code (I'm not sure how to <code>require 'csv'</code> in IRB) so I don't have any particular error message. My expectations for this will be to create an array (CSV_Total) that has a header with no symbols in it. The next step is to put that array back into a new file. Basically it would scrub CSV files.</p>