How to pull text file off web?

How to pull text file off web?

Page 1 of 1

8 Replies - 4370 Views - Last Post: 17 September 2005 - 01:18 AM Rate Topic: -----

#1 electrickjagwire  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 11-September 05

How to pull text file off web?

Posted 11 September 2005 - 01:16 AM

Rather than loading an RTF from my HD, I want to do it from my web site? Can any one help with this?
Is This A Good Question/Topic? 0
  • +

Replies To: How to pull text file off web?

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 247
  • View blog
  • Posts: 13,505
  • Joined: 12-July 02

Re: How to pull text file off web?

Posted 11 September 2005 - 05:50 PM

What exactly is the situation you'd like to see as an end goal? You have an application on a local machine, and it opens documents that are stored on another machine being used as a server? If you could describe the process you envision, we could provide more appropriate advice.
Was This Post Helpful? 0
  • +
  • -

#3 electrickjagwire  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 11-September 05

Re: How to pull text file off web?

Posted 11 September 2005 - 09:10 PM

to be honest, what I am going at is I want the program to test to see if there is an active internet connetion, I was going to simply continuosly load a rich text file, that is located on my website, once it fails the program knows the connection is no longer present. This is the easiest way I could think of doing this. Any better ideas? or know code to help me execute this one?
Was This Post Helpful? 0
  • +
  • -

#4 electrickjagwire  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 11-September 05

Re: How to pull text file off web?

Posted 12 September 2005 - 11:34 AM

Found my answer thanx.
in case any one was curios.


My.Computer.Network.DownloadFile _
("http://www.cohowinery.com/downloads/WineList.txt", _
"C:\Documents and Settings\All Users\Documents\WineList.txt")
Was This Post Helpful? 0
  • +
  • -

#5 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 247
  • View blog
  • Posts: 13,505
  • Joined: 12-July 02

Re: How to pull text file off web?

Posted 12 September 2005 - 11:39 AM

Cool...it might be less bandwidth consuming to poll the connection itself, see if it's live...
Was This Post Helpful? 0
  • +
  • -

#6 electrickjagwire  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 11-September 05

Re: How to pull text file off web?

Posted 12 September 2005 - 11:42 AM

How do you suggest doing this?
I know the ping command works in VB,
but I don't know how to analyze the results
Was This Post Helpful? 0
  • +
  • -

#7 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 247
  • View blog
  • Posts: 13,505
  • Joined: 12-July 02

Re: How to pull text file off web?

Posted 12 September 2005 - 11:53 AM

There are a few ways if doing it, alright...the most common is to parse the return string from the ping command, amke sure it went to a live address...here are some other implementations:

VB
VB
VB
I've specified the version, because I'm not sure if you are using vb, or vb.net
Was This Post Helpful? 0
  • +
  • -

#8 electrickjagwire  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 11-September 05

Re: How to pull text file off web?

Posted 12 September 2005 - 12:41 PM

Very helpfull, Thank you kindly!

Any ideas on my other questions? I've searched all over for them ,and have found nothing!!! :blink:
Was This Post Helpful? 0
  • +
  • -

#9 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 175
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: How to pull text file off web?

Posted 17 September 2005 - 01:18 AM

electrickjagwire, on Sep 13 2005, 01:01 AM, said:

Found my answer thanx.
in case any one was curios.


My.Computer.Network.DownloadFile _
("http://www.cohowinery.com/downloads/WineList.txt", _
"C:\Documents and Settings\All Users\Documents\WineList.txt")

Doesn't work in VB6.
Is this .NET code?

BTW amadeus...thanx for the PING post.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1