v/vlib/encoding/csv
2025-03-12 23:03:25 +03:00
..
csv_reader_eol_test.v encoding.csv: fix reading when there is no line ending at the end of the file (fix #22337) (#22342) 2024-09-28 17:49:40 +03:00
csv_reader_random_access.v encoding.csv: add support for multithreading to encoding.csv.RandomAccessReader (#23677) 2025-02-09 16:50:49 +02:00
csv_reader_sequential.v fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
csv_reader_test.v encoding.csv: add support for multithreading to encoding.csv.RandomAccessReader (#23677) 2025-02-09 16:50:49 +02:00
reader.v builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
reader_test.v
README.md
README_csv_reader.md fmt: cleanup fields comments alignment and add ignore_newline config (#22027) 2024-08-12 10:56:32 +03:00
to_struct_arr.v
utils.v encoding.csv: add a new utility fn new_reader_from_file/2 (#20530) 2024-01-14 19:42:01 +02:00
utils_test.v encoding.csv: add a new utility fn new_reader_from_file/2 (#20530) 2024-01-14 19:42:01 +02:00
writer.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
writer_test.v

Reader example

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']