Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 783 Bytes

TPJResourceEntry-LoadDataFromFile.md

File metadata and controls

23 lines (14 loc) · 783 Bytes

LoadDataFromFile method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceEntry

Applies to: ~>1.1

procedure LoadDataFromFile(const SrcFileName: TFileName;
  const Append: Boolean);

Loads the content of a file into the resource entry's raw data. The file content can either replace existing or be appedned to it.

After the file is loaded the Data property's stream pointer is set to 0.

Parameters

  • SrcFileName: The name of the file whose contents are to be loaded.
  • Append: When True the file contents are appended to the end of any current resource data. When False any existing resource data is replaced by the file contents.