Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Is there a simple way to output a datatable to a file, i.e. a text file or XML file etc.

 

Then a simple way to load the file back into a datatable?

 

Thanks

Posted

There's a method named ReadXML and WriteXML. You could look for them in MSDN. The samples are enough to get you started.

 

The methods are part of the DataSet class. I've been using it to dump my dataset to an XML file and creating my dataset from an XML file.

Amir Syafrudin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...