stevegray
4Penny.net
Points: 55409

4/10/2018 12:59:49 PM

TextParser for a FixedWidth file that has variable lengths

* This article, and all our great .NET Development documentation, Is available on the .NET Development menu

I have library code on this site to parse text files using the .NET TextParser library

http://dyndeveloper.com/ArticleView.aspx?ArticleID=154

and

http://dyndeveloper.com/thread.aspx?Threadid=1378

But today's task is a little different, the file had variable lengths. The code sample below introduces a variable then setting the line lengths to solve the problem

4Penny.net
Version: All
Section: .NET Development
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3