Skip to content

Instantly share code, notes, and snippets.

/test.rb Secret

Created November 18, 2015 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0da192d0ba7a9ad0a748 to your computer and use it in GitHub Desktop.
Save anonymous/0da192d0ba7a9ad0a748 to your computer and use it in GitHub Desktop.
How would I write to a Tab Separated file instead of a CSV file?
# write to file
CSV.open("#{product_category[0]}-#{product_category[1]}.csv", "w") do |csv|
product_urls.each do |pu|
csv << pu
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment