Is there a built-in field attribute in the FileHelper library which will add a header row in the final generated CSV?
I have Googled and didn\'t find much info on it
I don't know if you still need this, but here is the way FileHelper is working : To include headers of columns, you need to define a string with headers delimited the same way as your file. For example with '|' as delimiter :
public const string HeaderLine = @"COLUMN1|COLUMN2|COLUMN3|...";
Then, when calling your engine :
DelimitedFileEngine _engine = new DelimitedFileEngine { HeaderText = HeaderLine };
If you don't want to write the headers, just don't set the HeaderText attribute on the engine.