I was hoping you guys could help me out with this...
I am trying to open a file over the network or on a webpage... currently i can only open the file if it is stored locally (i.e. c:\filename.ext)
The code i used is this:
Open "C:\events.txt" For Input As #1
Input #1, NumEvents
For i = 0 To NumEvents - 1
Input #1, Events(i)
Input #1, EventInfo(i)
Next i
Close #1
For i = 0 To NumEvents - 1
LSTevents.AddItem Events(i)
Next i
This will get the data in the txt file and load it into the list box, and then get the other data in the txt file and put it on the label caption.
If anyone knows how to do this but be able to open the file if the file is located on a website or on another computer on a network, please let me know.
Question
nwmma
Hi all,
I was hoping you guys could help me out with this...
I am trying to open a file over the network or on a webpage... currently i can only open the file if it is stored locally (i.e. c:\filename.ext)
The code i used is this:
Open "C:\events.txt" For Input As #1 Input #1, NumEvents For i = 0 To NumEvents - 1 Input #1, Events(i) Input #1, EventInfo(i) Next i Close #1 For i = 0 To NumEvents - 1 LSTevents.AddItem Events(i) Next i
This will get the data in the txt file and load it into the list box, and then get the other data in the txt file and put it on the label caption.
If anyone knows how to do this but be able to open the file if the file is located on a website or on another computer on a network, please let me know.
I am using vb6.
Thanks
Link to comment
https://www.neowin.net/forum/topic/139545-open-file-from-networkinternet-visual-basic/Share on other sites
1 answer to this question
Recommended Posts