Using FileHelpers FixedFileEngine to read in large files from customers. One customer seems to have an extra whitespace per record (perhaps lf/cf TBD).
BUT can I support this difference easily in the parsing record definition?
[FixedLengthRecord()]
public class ClaimEntryDch
{
...
[IgnoreOptionalWhitespace(1)] // something like this?
string IgnoreThis { get; set; }
}
Perhaps you're looking for the
[FieldOptional]attribute?See this example fiddle for a demonstration.