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
:
: 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.