sevenalive Posted August 1, 2005 Share Posted August 1, 2005 i really need to know quicklyhow do i Displaya Text File (on the net)by Using a Text Box.I have been looking everywhere,SOMEONE HELP Link to comment Share on other sites More sharing options...
dman Posted August 2, 2005 Share Posted August 2, 2005 Imports systemDim Req As WebRequest = WebRequest.Create("http://www.yoursite.com/thefile.txt")Dim Resp As WebResponseTry Resp = Req.GetResponseCatch exc As Exception MsgBox(exc.Message) Exit SubEnd TryDim netStream As StreamReadernetStream = New StreamReader(Resp.GetResponseStream)TextBox1.Text = netStream.ReadToEnd Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now