reading from text file

  • 15 years ago

    ok, the following code is what I have at present, and it reads from a text file on my local machine. But I want it to read from a text file on the internet. Can someone please tell me what I need to change?


    Dim file As New System.IO.StreamReader("c:\rtest.txt")
           Dim words As String = file.ReadToEnd()
           file.Close()
           MessageBox.Show(words)

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Weeks of coding can save you hours of planning.”