|
-
May 1st, 2006, 02:05 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Help me open a file on the internet!
I wrote some code for checking if it can read a file that i have on my website. The file that the program is supposed to try to open is www.guitar.gratisplaneten.com/test.txt.
Why can't my program open the file? Is there some other way of doing this?
Here's the code of the function:
Function connected(hej)
On Error GoTo notconnected
Open "http://www.guitar.gratisplaneten.com/test.txt" For Input As #9
Close #9
Exit Function
notconnected:
If (MsgBox("The program cannot connect to the internet, check your internet and firewall settings and try again. To try again, press OK.", vbOKCancel, "No connection")) = vbOK Then
connected (1)
End If
End
End Function
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
|