exporting dataset contents to file

wilko18

Member
Joined
Feb 7, 2006
Messages
11
Programming Experience
Beginner
I have a streamwriter set up to write contents of a dataset to file.
I want to loop through it for each row exporting each column. (basically I want whats in the dataset to be streamwriten to a text file.

How do I get the value in the dataset

dataset.tables. ????

Thanks
 
Please choose a more fitting forum in your future posts, this post has been moved to the correct forum.

What you want to do is already available. Just choose the DataSet.WriteXML and subsequently the DataSet.ReadXML methods.
 
Back
Top