Results 1 to 4 of 4

Thread: Downloadtofile API...VB.Net alternative??[Resolved]

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Downloadtofile API...VB.Net alternative??[Resolved]

    I need to download this file:
    http://ut2003master.epicgames.com/se...t/full-all.txt

    its just a simple text file...
    with VB6 you can use the API Downloadtofile

    is there an alternative to this?

    How do I do it!??? thanks!
    Last edited by Static; Feb 25th, 2003 at 11:41 PM.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  2. #2

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    FYI..I finally got it!!!
    in case anyone else is trying to do this...


    VB Code:
    1. Dim tmp As New WebClient
    2.         tmp.DownloadFile("http://www.url.com/file.txt", "c:\file.txt")

    thats it!...but..it seems the formatting is not quite there...but who cares...im just Splitting it anyway
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    you could use windows sockets to download the exact file from the web server...

    i've posted the example of code how to do it a few times in this section of the forum... just search for people trying to download txt files....

  4. #4

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    yes...but is 2 lines of code?

    anyways..I tried doing a search and didnt see it.. thanks
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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