Sunday, November 14, 2010

How can I retrieve data from a web page and format it into a comma delimited text for array usage in VB.NET?

I am looking to fill arrays in a VB.NET program I am working on with data from the internet and need a way to automatically grab data from the internet (that is presented in a non delimited manner) and format it so as that I can send it directly to a single dimension array.



Any help would be greatly appreciated!How can I retrieve data from a web page and format it into a comma delimited text for array usage in VB.NET?
You use the WebRequest class to get the page



You can then dump the page's contents into a string variable using a StreamReader



You can spit the resulting string into arrays using the Split method.

No comments:

Post a Comment