Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

csv file current row number ruby

CSV.foreach( "data.csv", encoding: "UTF-8" ).with_index do |row, row_number|
  puts row_number
end
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #csv #file #current #row #number #ruby
ADD COMMENT
Topic
Name
1+1 =