From: Khalid Rajput Date: 2011-10-13T20:49:14+09:00 Subject: Reading CSV files into arrays and then comparing Hi, I am working on a small project which requires two 2-dimensional arrays to be produced from CSV files and then compared on some values and then producing a third array with as the result which then can be stored as CSV file. Example : Name, qtymin, qtymax,qtycurrent, qtyorder [["Atorva", 20, 50, 33, 10],["lipit", 10, ....]] 2nd file : Name, qtyusedtoday [["Atorva", 15],["lipit",4...]] The idea is that to read one row in the first file and then try to find a match the same item in the second file by reading whole file. In case of match/no match produce a row in third array which eventually could be given out as a separate csv file. Thanks in advance -- Posted via http://www.ruby-forum.com/.