if i had a text file at "www.whatever.com/textfile.txt"
how would I read from it from my computer?
with an internet transfer control, if so, how?
thanks in advance
Printable View
if i had a text file at "www.whatever.com/textfile.txt"
how would I read from it from my computer?
with an internet transfer control, if so, how?
thanks in advance
Fill a byte array with the data from the file (that you can download using the internet transfer control) then display the array in a text box.
I'm sorry i can't provide an example, as I only have VB Learning Edition at the moment, and it doesn't include the internet controls :(
Hope this helps.
Bye
helps, but only half way...
How do I setup the Internet Transfer Control to connect to the site and read the text file??
anybody?
That's the syntax. It has a lot more things to configure if you want (Proxy, port etc.), just look at the properties and methods.Code:MyString = Inet1.OpenUrl("MYSITE")
Text1.Text = MyString
You don't have to fill it in a byte array because this is a text file and is in the ASCII format. If you want to download progs you need to do:
Have fun!Code:Dim b() As Byte
b() = Inet1.OpenUrl("http://www.site.com/file.exe")
Open MYLOCALFILE For Binary Access Write As #1
Put #1, , b()
Close #1
[Edited by Jop on 09-08-2000 at 07:36 PM]