title: How to store number in text format in csv file using Ruby CSV?
body: <p>Even though I am inserting value as a string in CSV its getting stored as number e.g. "01" getting stored as 1.</p>
  
  <p>I am using CSV writer:</p>
  
  <pre><code>@out = File.open("#{File.expand_path("CSV")}/#{file_name}.csv", "w")
  CSV::Writer.generate(@out) do |csv|
    csv &lt;&lt; ["01", "02", "test"]
  end
  @out.close
  </code></pre>
  
  <p>This generates csv with given values but when we open csv using excel "01" is not stored as text it gets stored as number</p>
  
  <p>Thanks</p>