[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# ReadComponentResFile

Read component properties from a specified resource file

## Declaration

`function ReadComponentResFile(`
`const FileName: String;`
`Instance: TComponent`
`):TComponent;`

## Description

ReadComponentResFile starts reading properties for Instance from the file FileName. It creates a filestream from FileName and then calls the TStream.ReadComponentRes method to read the state of the component from the stream.

## See also

TStream.ReadComponentRes |  | Reads component data and resource header from a stream
WriteComponentResFile |  | Write component properties to a specified resource file