CsvReader
CsvReader copied to clipboard
Extended version of Sebastian Lorien's fast CSV Reader
From CodeProject comments... just playing around with this and thought you should know this will throw exceptions if there are unescaped quotes and/or newlines (not CR/LF, just LF) in tab...
When I parse my CSV file, my CachedCsvReader only returns one Record in the Record property. But if I look under the Raw View, Non-Public members, _items, I see all...
I have a problem with the version 3.9.0. When i read a CSV like: > CSV File: `12345678;Hello` `78945612;World` > C# Code: `using (CachedCsvReader csv = new CachedCsvReader(new StreamReader(csvFile, Encoding.Default),...
A CSV file with content that is invalid (example: field is too long compared to the column its being inserted into) is difficult to error check as it does not...
While I can get this sample code to print out the value of my custom column correctly, it does not work with SBC. SBC will not see my new column....
Hey guys and thanks for the awesome work! Could be a ReadAllLines() method, then run a Parallel.For loop to process all the lines in parallel way faster than the used...
Lets say using the [example here](https://github.com/phatcher/CsvReader#sql-bulk-copy) I did not want to include a row if the Column `OpenPrice` was `< 100.00`. Is this possible?
More of a question, initially thought it was a bug. I need to know how many lines are in my csv file. So I did a `myCsvReader.Count()` (Linq) to get...
hi, in CsvReader.cs, in the function `private string ReadField(int field, bool initializing, bool discardValue)` this line `throw new ArgumentOutOfRangeException(nameof(field), field, string.Format(CultureInfo.InvariantCulture, ExceptionMessage.FieldIndexOutOfRange, field));` throws an error > Method not found:...
Code based on the example provided in documentation ``` using (SqlConnection connection = new SqlConnection(connectionString)) { SqlBulkCopy sbc = new SqlBulkCopy(connection); sbc.DestinationTableName = "CsvReaderDeaultValueTest"; using (LumenWorks.Framework.IO.Csv.CsvReader reader = new LumenWorks.Framework.IO.Csv.CsvReader(new...