Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a text file into a Dataset
Message
De
03/04/2007 09:21:29
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
03/04/2007 09:12:01
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01211619
Message ID:
01211622
Vues:
18
Sergio,
Look at this link: http://www.connectionstrings.com/?carrier=textfile

I think what you are looking for is the OLE DB Delimited Columns area. I have never used this myself, so I cannot help much more. I am assuming you will need an System.Data.OleDb.OleDBConnection with this connection string to read into a dataset.

>Hello UT,
>
>I need to load a text file(comma delimited ), then manipulate the the four fields in it and insert the fields into a foxpro table(using c#).
>
>
>The text file looks like this :
>(policy #, amount, check#, check type)
>
>00000000592245122,00000000400,0000000000,1
>00000000592245122,00000000100,0000000000,1
>00000000892046820,00000027340,0000000484,1
>00000000892046820,00000150000,0000000484,1
>
>
>I think I can use IO.StreamReader class to open the file and read it but not sure if I can load it directly into a Dataset.
>If anybody have an example or advise on what is the best way to do it I would appreciate it.
>
>Thanks
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform