Logo
Explore Help
Sign In
TheCloud/v
1
0
Fork 0
You've already forked v
mirror of https://github.com/vlang/v.git synced 2025-09-08 06:41:58 -04:00
Code Issues Packages Projects Releases Wiki Activity
v/vlib/encoding/csv
History
Felipe Pena 24238c107d
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_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
ast: fix const field str() (#22192)
2024-09-10 17:02:51 +03: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
fmt: fix alignment of struct init fields (#22025)
2024-08-11 09:11:24 +03:00
reader_test.v
…
reader.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
README_csv_reader.md
fmt: cleanup fields comments alignment and add ignore_newline config (#22027)
2024-08-12 10:56:32 +03:00
README.md
…
to_struct_arr.v
…
utils_test.v
encoding.csv: add a new utility fn new_reader_from_file/2 (#20530)
2024-01-14 19:42:01 +02:00
utils.v
encoding.csv: add a new utility fn new_reader_from_file/2 (#20530)
2024-01-14 19:42:01 +02:00
writer_test.v
…
writer.v
fmt: fix alignment of struct init fields (#22025)
2024-08-11 09:11:24 +03:00

README.md

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']
Powered by Gitea Version: Page: 1521ms Template: 143ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API