Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Easy][TUT] Reading Text From a Webpage

So This Tutorial is based around reading ASCII from a txt file or maybe even an HTML on a webpage for such things as a News updater on the sidebar of a program.

So 1st off create a Form and add: 1 Button and A Textbox set to multiline Spoiler (Click to View)

[IMG]http://i295.photobucket.com/albums/mm124/tanman39/HFTUT1.png[/IMG]


Then add this under Public Form 1:
Dim webclient As New System.Net.WebClient


Then go back to your form and double click the button you added; add this code:

Textbox1.Text = System.Text.Encoding.ASCII.GetString(( _
webclient.DownloadData("http://example.org/tutorial.txt")))

Change your button text to something like 'Update' or 'Refresh'


This was my first tutorial and if you found it helpful please comment ✌
Nice contribution to the coding forum. 5 stars.
Peace..
Thank you Crash-Override.
Commenting is appreciated :)
(Jun 25, 2011 12:12 AM)Phriendly Wrote:  Thank you Crash-Override.
Commenting is appreciated :)

You are welcome. +1 for you still being a new member and posted a vb.net tutorial rather than posting a thread "help me with crypter plox" .
Peace..
Well I find it silly when people try to make things that they don't understand/ know how to make.

I'm going to this because i think it could help a lot of people :)
Hmm! Nice one

But you could even try this one:

PHP Code

<?php 
Textbox1
.Text = webclient.Downloadstring("http://example.org/tutorial.txt") 

The result is same in the end i believe :)
haha i guess... works either way


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by DeadShot32Oct 4, 2019 08:58 AM 14 439 Oct 4, 2019 08:58 AM
Last Post: MavenGradle
[C#] by lUL280yJul 4, 2019 07:51 AM 5 199 Jul 4, 2019 07:51 AM
Last Post: eCoLoGy
[Java] by friiz1337Apr 3, 2018 09:46 AM 7 285 Apr 3, 2018 09:46 AM
Last Post: Conejo