TECLStream.LoadFromFile
TECLStream
Loads the entire contents of a file into the data stream.
procedure LoadFromFile(const FileName: string);
Description
Use LoadFromFile to fill the data stream with the contents of a file and transparently compress the data. Pass the name of the file as the FileName parameter. LoadFromFile allows an application to read the contents of a file into the ECL stream without having to explicitly create and free a file stream object.
LoadFromFile resets the size of data stream so that the contents of the file will fit exactly. It sets the Size property accordingly, and then reads the entire contents of the file into the data stream. Thus, LoadFromFile will discard any pre-existing data stored in the data stream.
|