Yes FileHelpers can handle multiple record types within the same file. It depends whether there is any hierarchical relation between the records. If not, you can use the MultiRecordEngine
.
Check out the MultiRecordEngine example
If your contract row needs to use information from the John Smith row, then you can use a MasterDetailEngine
.
Check out the MasterDetailEngine example
Note however, the MasterDetailEngine
only supports one level of nesting.