class CSV
- Parent:
- Object
- Included modules:
- Enumerable
This class provides a complete interface to CSV files and data. It offers tools to enable you to read and write to and from Strings or IO objects, as needed-
Reading
A Line at a Time
CSV.foreach("path/to/file.csv") do |row|
# use row here...
end
All at Once
登录查看完整内容