|
-
Sep 8th, 2000, 04:51 PM
#1
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
-
Sep 8th, 2000, 05:04 PM
#2
Fanatic Member
Try this
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
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
-
Sep 8th, 2000, 05:38 PM
#3
helps, but only half way...
How do I setup the Internet Transfer Control to connect to the site and read the text file??
-
Sep 8th, 2000, 06:04 PM
#4
-
Sep 8th, 2000, 06:30 PM
#5
Frenzied Member
Code:
MyString = Inet1.OpenUrl("MYSITE")
Text1.Text = MyString
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.
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:
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
Have fun!
[Edited by Jop on 09-08-2000 at 07:36 PM]
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|