Home All Groups Group Topic Archive Search About
Author
3 May 2005 9:08 AM
chris ong via DotNetMonster.com
hi everyone...

i have a problem here.. i am using datagrid to store information which i
have gotten in a dataset.. then i wish to covert all the information into
string so that i can save all the information into a .txt format file.. can
i know how to do that? thanks in advance

chris

Author
3 May 2005 1:00 PM
Brock Allen
The DataSet can automatically save out all of its information to a text file,
although it liberally sprinkles lots of angle brackets in it if you can put
up with that:

DataSet.WriteXml("c:\\mydata.xml")

Otherwise I think you're on your own.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> hi everyone...
>
> i have a problem here.. i am using datagrid to store information which
> i have gotten in a dataset.. then i wish to covert all the information
> into string so that i can save all the information into a .txt format
> file.. can i know how to do that? thanks in advance
>
> chris
>
Are all your drivers up to date? click for free checkup

Author
4 May 2005 1:47 AM
chris ong via DotNetMonster.com
hi brock....

hmmm .. ur way sure works and i appriciate it... but what i want is not XML
information.. wad i wan is a txt file that contains all the fields inside
the dataset something like this


name     NRIC        tel

chris    s8616902J   63685555



thanks

--
Message posted via http://www.dotnetmonster.com

Bookmark and Share

Post Thread options