Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to parse fixed length text file
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Best way to parse fixed length text file
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01396650
Message ID:
01396650
Vues:
156
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform