By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

CSV/Bytearray to Datatable

P: n/a
I'm trying to download a csv file into a datatable but can't seem to figure
it out. I can read the csv into a bytearray and view it but I'm having
trouble trying to figure out get the downloaded file into a datatable
instead of saving the file to the hard drive then reading. I'd like to read
it straight into the datatable. Any suggestions? Thanks

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
B-Dog,

This is quiet standard.

See a sample of me in this message, however there are thousands.
http://groups-beta.google.com/group/...e1d7736d7f2a02

I hope this helps,

Cor
Nov 21 '05 #2

P: n/a
That is, but is there a way to do it reading it straight from website using
a bytearray without having to download the file then read it. Right now I'm
using webclient to download into a byte array and can view the contents but
haven't found a way to get it into a dataset. This process is fast if I
could just figure out how to get it into a table.

ByteArray = W.DownloadData(URL)
ResponseString = System.Text.Encoding.ASCII.GetString(ByteArray)

which gives me something like this

ABC,ABC,123,456
ABC,DEF,234,234
ABE,SES,234,121
"Cor Ligthert" <no************@planet.nl> wrote in message
news:el**************@tk2msftngp13.phx.gbl...
B-Dog,

This is quiet standard.

See a sample of me in this message, however there are thousands.
http://groups-beta.google.com/group/...e1d7736d7f2a02
I hope this helps,

Cor

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.