Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How best to parse tex tfile?
Message
De
28/04/2005 12:27:50
 
 
À
28/04/2005 07:06:58
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01009146
Message ID:
01009328
Vues:
13
This message has been marked as the solution to the initial question of the thread.
Hi Alex,
For parse text file you can use 2 ways.
Use String.Split method .. it looks like VFP GETWORDNUM() GETWORDCOUNT()

For example
Use Dmitry Litvak solution to get string..
Dim Separators() as Char = {"!"c}
Dim Words() as String
Words = YourFileString.Split(Separators)
Dim Word as String
For Each Word in Words

Next
But.. realy I start with .net with same task like you have. I using oleDBConnection over Provider=Microsoft.Jet.OLEDB.4.0;. If you have text delimited files in correct format (columns,rows) - then its the best way to access file and convert it to the DataTable, then.. using common ADO.net methods you can work with this DataTable..
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform