|
-
Apr 21st, 2001, 08:26 PM
#1
Thread Starter
Lively Member
Hi.
Using ASP, how can I read a file located on another server?
------------------------------------------
Example:
I want my site to contain the latest news from news.com.
My site:
www.domain1.com/getnews.asp
Remote file:
www.news.com/news.html
------------------------------------------
Thanks
D
-
Apr 21st, 2001, 11:17 PM
#2
Addicted Member
You can do it..If you have access to Inet control or other Third party File transfer control at the server end.
-
Apr 22nd, 2001, 04:20 PM
#3
Thread Starter
Lively Member
Code:
Dim objFSO
Dim objTextStream
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objTextStream = objFSO.OpenTextFile("file.txt", fsoForReading)
I know this method is supported, but will that do? If it does, how do I make it read something remote?
Thanks
D
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
|