My CSV File Is as below ,
Name,Place, <<--- Headers
Panindra,India,
Kumar,India,
As one can see the csv file contains extra "Comma" at end of each line instead of blank . and Row Breaker / Line Seperator is missing and hence Its showing error in parsing csv file in "FILE HELPERS" . getting error as "extra comma is found at the end of filed ['Place'] "
how to solve this issue ??
my Delimiter CLass goes like this
using FileHelpers;
namespace CsvReader.Model
{
[DelimitedRecord(",")]
public class CSVModel
{
[FieldTrim(TrimMode.Both)]
public string Name;
[FieldTrim(TrimMode.Both)]
public string Place;
}}
...
and Parsing Code is like this ...
...
engine = new FileHelperAsyncEngine<CSVModel>();
this.engine.Options.IgnoreFirstLines = 1;
engine.BeginReadFile(fullpath);
...