Skip to main content

rustyqlib/utils/
read_csv.rs

1use csv;
2pub fn read_ts(path: &str){
3    let mut reader = csv::Reader::from_path(path).unwrap();
4    for record in reader.records() {
5        let r = record.unwrap();
6        println!("{:?}", &r[0]);
7        println!("{:?}", &r[1]);
8
9    }
10
11}