Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How best to parse tex tfile?
Message
From
28/04/2005 12:27:50
 
 
To
28/04/2005 07:06:58
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009146
Message ID:
01009328
Views:
14
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..
Previous
Reply
Map
View

Click here to load this message in the networking platform