Question:

How can I write data, which I read from sql database, into a text file by using C#

by  |  earlier

0 LIKES UnLike

I want to write it at the form of its orginal table.

 Tags:

   Report

2 ANSWERS


  1. What you want to do is serialize data in order to store it. Try methods like ToByteArray or ToString.

    If these don't work, you can have the xml serializer from the .net framework make a nice xml from your data. The same xml serializer can then de-serialize the xml and you will have your object. Look it up on msdn


  2. ADO.NET

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.