lumenworks

Reading csv having double quotes with lumenwork csv reader

两盒软妹~` 提交于 2019-12-12 12:02:43
问题 I'm reading a csv file using the Lumenworks csv reader. Below is an example record "001-0000265-003"|"Some detail"|"detal1"|"detail2"|"detal3"|"detail4"|"detail5"|"detail6" I've created a class with below constructor to read this file using (var input = new CsvReader(stream, true, '|')) { //logic to create an xml here } This works fine when there is no double quotes inside details. But when the scinarios like this "001-0000265-003"|"Some " detail"|"detal1"|"detail2"|"detal3"|"detail4"|

Lumenworks Fast CsvReader - Exception error reading tab delimit file due to quote character

孤者浪人 提交于 2019-12-07 05:49:26
问题 I'm using Lumenworks Fast CsvReader and the exception error occurred while reading the Kelley Blue Book's file: The CSV appears to be corrupt near record '1281' field '5 at position '1169' The file is tab delimited. In there I found double quotes was used but I don't see how to escape it and resume normally because it's tab delimited data. --Characters in Text File-- 12345 2013 RAV4 "Sport" Sport Utility 4D 2 --Source Code-- using(CsvReader csvReader = new CsvReader(new StreamReader(filePath)

Lumenworks Fast CsvReader - Exception error reading tab delimit file due to quote character

青春壹個敷衍的年華 提交于 2019-12-05 09:03:36
I'm using Lumenworks Fast CsvReader and the exception error occurred while reading the Kelley Blue Book's file: The CSV appears to be corrupt near record '1281' field '5 at position '1169' The file is tab delimited. In there I found double quotes was used but I don't see how to escape it and resume normally because it's tab delimited data. --Characters in Text File-- 12345 2013 RAV4 "Sport" Sport Utility 4D 2 --Source Code-- using(CsvReader csvReader = new CsvReader(new StreamReader(filePath), false, '\t', '"', '"', '#', LumenWorks.Framework.IO.Csv.ValueTrimmingOptions.QuotedOnly)) { } I tried