[go: up one dir, main page]

csv 0.6.1

CSV parsing with automatic type based decoding and encoding.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate csv;

use std::path::Path;

fn main() {
    let huge = "../examples/data/ss10pusa.csv";
    let mut rdr = csv::Reader::from_file(&Path::new(huge));
    while !rdr.done() {
        loop {
            match rdr.next_field() {
                None => break,
                Some(f) => { f.unwrap(); }
            }
        }
    }
}