 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Juergen Langer Guest
|
Posted: Thu Jan 29, 2004 12:20 pm Post subject: TNMHTTP *HTTP->Get result save in a text file |
|
|
Hi,
how can i save the result from TNMHTTP *HTTP->Get, see below, in a text file
Sample:
TNMHTTP *HTTP;
url = "http://www.........";
HTTP->Get(url);
....
....
Thanks
Juergen
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Thu Jan 29, 2004 12:41 pm Post subject: Re: TNMHTTP *HTTP->Get result save in a text file |
|
|
Juergen Langer wrote:
| Quote: | how can i save the result from TNMHTTP *HTTP->Get, see below, in a text file
Sample:
TNMHTTP *HTTP;
url = "http://www.........";
|
NMHTTP1->InputFileMode=false; // this you should have already
And then:
Memo1->Text = HTTP->Body;
Memo1->SaveToFile ( FileName );
But the way to directly save it to file is
AnsiString FileName = ......
NMHTTP1->InputFileMode = true;
NMHTTP1->Body = FileName;
NMHTTP1->Get (WideString( URL ) );
// done.
You can read all this in the help for TNMHTTP too ..
Hans.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|