Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

VS 2010 Load contents of a file to datatable

$
0
0
Hi!

Never used .csv file for data source so I have a question. I have a file with contents like this:

Mike
John
Evelyn
etc.

How do I read this file line by line and store names into a datatable so I can display the names in datagridview? as you can see every name is on separate line. There are no usual delimiters like ;,. etc.

Thanks in advance!

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>