FlatFile icon indicating copy to clipboard operation
FlatFile copied to clipboard

delimited layout, wrong parsing when multiple fields are empty at the end of the row

Open falcopellegrino opened this issue 7 years ago • 0 comments

if I have multiple empty field at the end of a row I get the separator as value:

Explained better here: https://stackoverflow.com/questions/52017242/flatfile-library-delimited-layout-wrong-parsing-when-multiple-fields-are-empty

I don't know if I miss some attribute configurations...

I download the code, in debug it seems to be a problem in class DelimitedLineParser, when check:

if (line.Length > linePosition + delimiterSize)

at first glance could be a solution the next line???

if (line.Length >= linePosition + delimiterSize)

falcopellegrino avatar Aug 25 '18 13:08 falcopellegrino