views:

203

answers:

2

G'day guys, I'm currently using fasterCSV to parse a CSV file in ruby, and wondering how to get rid of the initial row of data on a CSV (The initial row contains the time/date information generated by another software package)

I tried using fasterCSV.table and then deleting row(0) then converting it to a CSV document then parsing it

but the row was still present in the document.

Any other ideas?

fTable = FasterCSV.table("sto.csv", :headers => true)
fTable.delete(0)
A: 
Chris McCauley
A: 

According to the docs, fTable = FasterCSV.table("sto.csv", :return_headers => false) should do what you want. .table implies :headers => true The docs have this info.

x1a4
The first row isn't a header. The first row is "time/date information generated by another application"
Chris McCauley