Results 1 to 4 of 4

Thread: Reading a .txt file from a website

  1. #1

    Thread Starter
    Addicted Member Celest's Avatar
    Join Date
    Jun 2001
    Posts
    134

    Reading a .txt file from a website

    Hey!

    As im a visual basic newbie i was wondering if it is possible to read a text file from a website to retrieve infomation from it. As in it opens www.website.com/textfile.txt and can read what's in it as if it was opening a normal file off my harddrive. Anyway any help would be greatly appreciated, thanks

  2. #2

    Thread Starter
    Addicted Member Celest's Avatar
    Join Date
    Jun 2001
    Posts
    134
    Sorry for not editting my first post, but the edit page doesnt seem to load

    anyway i tried Open "http://www.website.com/textfile.txt" For Input As #1 but it didnt work

  3. #3
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    Probably the easiest way to do this would be to use the URLDownloadToFile API. Use the search box above and you will find all kinds of example of using URLDownloadToFile.

  4. #4

    Thread Starter
    Addicted Member Celest's Avatar
    Join Date
    Jun 2001
    Posts
    134
    thanx bloodeye

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