Internet Direct (Indy) Version 9.0.2 Beta
TIdMessage.LoadFromFile
Loads message headers and contents from a file.

procedure LoadFromFile(AFileName: string);
Parameters
AFileName: string
File to load into the message.

Description
LoadFromFile is a procedure that loads the headers and contents for a message from the file name specified in AFilename. LoadFromFile creates an instance of TIdMessageClient to load the message using the file-based variant of its ProcessMessage method. LoadFromFile frees the TIdMessageClient instance prior to exiting from the method.

Use SaveToFile to create a file suitable for use with LoadFromFile.