AllExperts > Experts 
Search      

C#

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More C# Answers
Question Library

Ask a question about C#
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Dragan Jovanoski
Expertise
Programming Windows Forms, ASP.NET, GDI+ (C#), OOP (C++ and C#), Structural Programming (C++ and C#)

Experience
10 years experience in C/C++/C#, programming ASP.NET and Windows Applications

Organizations
EMITER, Correspondent for Computer Science Column (Microsoft and HP analyst, Artificial Intelligence, C/C++/C# Programming), Member of IAENG and CSTA

Publications
EMITER, Science and Technology Magazine

Education/Credentials
MSc. in Internet Programming, BSc. in Computer Science

 
   

You are here:  Experts > Computing/Technology > C/C++ > C# > creating a text file which should contain data in a tabular format

Topic: C#



Expert: Dragan Jovanoski
Date: 3/20/2008
Subject: creating a text file which should contain data in a tabular format

Question
how do i create a text file with data from the database Table.
i am having a data from the Table in the DataSet, now how do i pass this to text file in the same format.
i don't want to the data to be stored in XML format.

example: data in the text file should be stored in the below format.

Name    Age    City     Zipcode
Joy     22     SA       2345
Kelly   19     LA       1234
DP      25     WL       9999

Could you please let me know how to proceed.
Thank you.

Answer
Hi Durga Prasad,

 You should consider using the FileStream methods as one possibility.
Here is one good reference that I consider is useful:

http://www.codeguru.com/csharp/csharp/cs_syntax/anandctutorials/article.php/c586...

Try to google it. There are tons of references about it.

cheers

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.