Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

read xls file in ruby

require 'creek'

workbook = Creek::Book.new 'path/to/file.xlsx'
worksheets = workbook.sheets

worksheets.each do |worksheet|
  worksheet.rows.each do |row|
    row_cells = row.values
    # do something with row_cells
  end
end
Source by spin.atomicobject.com #
 
PREVIOUS NEXT
Tagged: #read #xls #file #ruby
ADD COMMENT
Topic
Name
1+7 =