cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
This is close:
http://www.codeproject.com/csharp/ReportParser.asp
But it doesnt cateer for files laid out like:
The files we get are blocks of detail organized into sections, each section header and footer and detail line obey the same pattern but they need distincting. The microsoft text driver cannot handle this..
Its looking like I'm going to be writing a forward-reading custom parser..
http://www.codeproject.com/csharp/ReportParser.asp
But it doesnt cateer for files laid out like:
VB.NET:
file header
section 1 header
detail line
detail line
section 1 footer
section 2 header (same layout as 1)
detail line (same layout as 1)
...
section N header (same layout as 1)
detail line (same layout as 1)
section N footer (same layout as 1)
file footer
The files we get are blocks of detail organized into sections, each section header and footer and detail line obey the same pattern but they need distincting. The microsoft text driver cannot handle this..
Its looking like I'm going to be writing a forward-reading custom parser..