Results 1 to 2 of 2

Thread: Up-and-Downloading a text file to a web site

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post

    I know this belongs in the Intenet Programming forum (where I also posted it), but I thought maybe someone here might be able to help me since that other forum doesn't get nearly the traffic that this one does.

    I want to use my web site to store a text file, and I want to be able to use VB to retrieve the file and replace it. I'm sure this is possible (probably using the inet control) but I don't know where to start.

    Here's what I want to do:
    1. Post the original file (MyText.txt) to my web site (http://www.MyProvider.com/MyName/MyPage.htm). This is a simple text document and is not meant to be displayed as a web page. Just a file to download. To upload using ftp and FrontPage (when creating my site), the ftp was ftp://MyProvider.com
    2. Download the file and read it (actually parse it programmatically...I don't want to see any of this as the user).
    3. Compare the contents of the file to one I have on disk (this part I know how to do)
    4. Upload and replace the original text file with a new text file of the same name.
    5. This should all happen behind the scenes. The only thing the user will see is some text from the downloaded file displayed in a textbox.

    Any help you could give would be greatly appreciated. Even a pointer on where to start to learn about using VB to program ftp transfers! I am a pretty quick learner, but have had a little trouble with this control.

    Thanks in advance,

    ~seaweed

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Post

    use inet.execute , "GET"
    and inet.execute , "PUT"

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