Вы можете использовать события для получения полной строки, BeforeReadRecord или AfterReadRecord имеют аргумент, содержащий свойство RecordLine
Вот пример: https://www.filehelpers.net/example/EventsAndNotification/ReadEvents/
[FixedLengthRecord(FixedMode.AllowVariableLength)]
[IgnoreEmptyLines]
public class OrdersFixed
{
[FieldFixedLength(7)]
public int OrderID;
[FieldFixedLength(8)]
public string CustomerID;
[FieldFixedLength(8)]
public DateTime OrderDate;
[FieldFixedLength(11)]
public decimal Freight;
}
public override void Run()
{
var engine = new FileHelperEngine<OrdersFixed>();
engine.BeforeReadRecord += BeforeEvent;
engine.AfterReadRecord += AfterEvent;
var result = engine.ReadFile("report.inp");
foreach (var value in result)
Console.WriteLine("Customer: {0} Freight: {1}", value.CustomerID, value.Freight);
}
private void BeforeEvent(EngineBase engine, BeforeReadEventArgs<OrdersFixed> e)
{
Console.Write(e.RecordLine)
}
private void AfterEvent(EngineBase engine, AfterReadEventArgs<OrdersFixed> e)
{
Console.Write(e.RecordLine)
}