Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi all,

I have a tab delimited text file which looks something like this.

Name age sex ditrict
avinash 21 male bang
rahul 22 male pune
divya 22 female chennai

its a TAB delimited file, i want to read this .txt file in to asp.net datatable using c# can any1 please help me and provide me with the code?

Thanks in Advance.
Posted
Comments
dan!sh 2-May-11 6:12am    
What have you tried apart from posting your question here?

 
Share this answer
 
Check the code snippet at the following URL:

http://forums.asp.net/t/1163867.aspx/1[^]

Another example:
Fill a DataSet from delimited text files[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900