aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/encoding/csv/README.md
blob: 01f3e4eb763e091b095231fd41813a4488759056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## Reader example

```v
import encoding.csv

data := 'x,y\na,b,c\n'
mut parser := csv.new_reader(data)
// read each line
for {
	items := parser.read() or { break }
	println(items)
}
```

It prints:
```
['x', 'y']
['a', 'b', 'c']
```