Results 1 to 3 of 3

Thread: Reading remote files

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Trondheim, Norway
    Posts
    65
    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

  2. #2
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    You can do it..If you have access to Inet control or other Third party File transfer control at the server end.
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Trondheim, Norway
    Posts
    65
    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
  •  



Click Here to Expand Forum to Full Width