class

CSV::Reader

ruby latest stable - Superclass: Object

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

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