how to read a text file using datatable in c# Class file

Posted by Sripriya under C# on 8/3/2011 | Points: 10 | Views : 3491 | Status : [Member] | Replies : 2
how to read a text file using datatable in c# Class file(.csfile)?
for example i want userId and cmd columns only read that file .
give some examples and guide my codings




Responses

Posted by: Hmanjarawala on: 8/3/2011 [Member] Bronze | Points: 25

Up
0
Down
Sorry sripriya,
not getting ur quest.... :(

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Sripriya, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 8/3/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

Read thru each line of the file,
Split the comma separated data and loop thru to populate into DataTable columns



Thanks and Regards
Madhu

Sripriya, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response