I am reading a huge file using FileHelpers library. I would like to change the RecordLine before reading the record like below.
static void engine_BeforeReadRecord(object sender, BeforeReadRecordEventArgs<object> e)
{
if (e.RecordLine.Contains(@"\|"))
e.RecordLine.Replace(@"\|", "");
}
Their online help also says it is possible to change
Note: if you change the RecordLine the engine use the changed value This can be useful in some cases but you must be carefull
But it is not working. Whether any issue in the way am i doing?