I am utilizing an API which unfortunately only allows me to download information in a csv format. The only option I am thinking of is to download ~100 CSV files one by one, storing each column of the csv file into an array and then deleting that CSV file when I am done with it. Each file contains the same column headers in, but they are in a different order:

```
#CSV File 1

column1 | column3 | column2

#CSV File 2

column1 | column2 | column3

```

How can I write a script to add each column to it's appropriate array (`column1`,`column2`,`column3`)? I am currently artificially creating columns like so, but this is based strictly on column number, not name:

```
column1 = []
column2 = []
column3 = [] 

CSV.foreach(csv_file, :col_sep => "," :headers => false) do |column|  

  column1 << column[0]
  column2 << column[1]
  column3 << column[2]
end

```