Internet Direct (Indy)
Home
PreviousUpNext
TIdAttachment.SaveToFile Method

Stores the headers and message part content for the attachment into the specified file.

Pascal
procedure SaveToFile(
    const FileName: String
); virtual;
Parameters 
Description 
FileName 
FIle used to store the contents of the attachment. 

SaveToFile is a method used to store the headers and message part content for the attachment into the file specified in FileName

SaveToFile creates a TIdFileStream instance that used to write the contents of the attachment by calling SaveToStream. SaveToFile frees the TIdFileStream instance prior to exiting form the method.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.