Store TIdAttachmentFile in a variable

Giganews Newsgroups
Subject: Store TIdAttachmentFile in a variable
Posted by:  Alexandre (alexandrepires20…@yahoo.com.br)
Date: Mon, 21 Feb 2011

Remy, how store the text of a attachment in a variable ?

To write in a aqruivo I use:

TIdAttachmentFile(Msg.MessageParts.Items[intIndex]).SaveToFile('c:\filename.txt')

But I need to store the text portion directly into a variable

Thanks
Alexandre

Replies