Answers for "read xls file in ruby"

0

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
Posted by: Guest on April-08-2021

Browse Popular Code Answers by Language