I am using FileHelpers libary and I have a pipe "|" delimited file that must have only 4 fields, and I need to validate when a record has more than 4 fields and save error.
bla|bla2|bla3|bla4 <- Good Record
bla|bla2|bla3|bla4|bla5 <- Wrong record
File Helpers throw a BadUsageException but the message does not describe well the ocurrence.
Thanks for answer.