Can you read from a csv transformed into a string? #1778
Answered
by
JoshClose
madquantum81
asked this question in
Q&A
-
Do you support reading cvs from a string? |
Beta Was this translation helpful? Give feedback.
Answered by
JoshClose
Apr 20, 2021
Replies: 1 comment 1 reply
-
Yes. CsvHelper takes in a var reader = new StringReader(text);
var csv = new CsvReader(reader, config); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
madquantum81
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. CsvHelper takes in a
TextReader
. You can use aStringReader
for yourTextReader
.