class

CSV::Reader

v1_8_7_330 - Show latest stable - Superclass: Object

CSV formatted string/stream reader.

EXAMPLE

read CSV lines untill the first column is 'stop'.

CSV::Reader.parse(File.open('bigdata', 'rb')) do |row|
  p row
  break if !row[0].is_null && row[0].data == 'stop'
end

Included modules

  • Enumerable

Files

  • lib/csv.rb