Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to parse fixed length text file
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Best way to parse fixed length text file
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01396650
Message ID:
01396650
Views:
157
Hi All, I need to parse a text file which contains fixed length lines of six columns like the one shown below, however, one or more of the columns could be blank - the only constant being the first which always there and is of the format with BX00000000 - I've cobbled a program together which uses substrings, but think a Regex would be a cleaner way ?
BX00027025  AD               ME                CW                   NO'S ALLOCATED TO KEW TRUNKS   29/03/1994 
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform