0.0
No commit activity in last 3 years
No release in over 3 years
The combined CSV file is read.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1.3
~> 1.8.3
~> 3.12
~> 2.8.0
 Project Readme

csv_combine¶ ↑

“csv_combile” combines and reads two or more CSV files.

How to use.¶ ↑

(1) Add your Gemfile.

gem "csv_combine"

(2) Read CSV.

reader = CsvCombine.open("file_a.csv","file_b.csv")
reader.each do |csv|
  puts csv
end

["Yui Hirasawa", "17", "guitar"]
["Mio Akiyama", "17", "base"]
["Ritsu Tainaka", "17", "dram"]
["Tsumugi Kotobuki", "17", "keyboard"]
["name", "age", "instrument"]
["Azusa Nakano", "16", "guitar"]

(3) Options

# Uniq lines.
CsvCombine.open("file_a.csv","file_b.csv",:uniq => true)

# skip headers
CsvCombine.open("file_a.csv","file_b.csv",:skip_header_files => "file_b.csv")

Copyright © 2012 Yamamoto Kazuhisa. See LICENSE.txt for further details.