txt file on internet

Hi.

I have a webserver running at home. I have made an application that shall read a textfile on that server about once a day.
Can anyone tell me the easiest way to do this?
I use Delphi .NET for this.

Short: How to read a textfile throu the internet, easiest way?

Comments

  • : Hi.
    :
    : I have a webserver running at home. I have made an application that
    : shall read a textfile on that server about once a day.
    : Can anyone tell me the easiest way to do this?
    : I use Delphi .NET for this.
    :
    : Short: How to read a textfile throu the internet, easiest way?
    :
    :
    Place a TWebBrowser on your form. Use that to read the text file. Then use the various interfaces to get the body into a string. Here's how to get the body:
    [code]
    with IHTMLDocument2(WebBrowser1.Document) do
    TextData := Body.InnerHTML;
    [/code]
    For this to work you'll need to use the MSHTML unit.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion