Re: SaveToFile using append

Giganews Newsgroups
Subject: Re: SaveToFile using append
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Mon, 7 Sep 2009

"stevel" <…@goodnloud.com> wrote in message
news:6F6C8AAFBF8FE340…@goodnloud.com...

> TIdMessage.SaveToFile creates a new file each time it is called.

It is supposd to.

> Is there a TIdMessage.method that would/could append the message
> to a named file when called each time?

Open the file yourself using TFileStream, and then pass it to
TIdMessage.SaveToStream().

--
Remy Lebeau (TeamB)

Replies

In response to

SaveToFile using append posted by stevel on Sun, 6 Sep 2009