TResources.WriteToFile¶
Writes the contents of the object to a file
Declaration¶
Source position: resource.pp line 282
public
procedure WriteToFile(aFileName: string); overload; overload;
procedure WriteToFile(aFileName: string;
aWriter: TAbstractResourceWriter); overload; overload;
Description¶
This method writes the contents of the object to a file whose name is passed as parameter.
If a writer is specified, that writer is used. Otherwise, the first registered writer matching the file name extension is used.
Errors¶
If no writer is passed and no suitable writer is found, an EResourceWriterNotFoundException exception is raised.
See also¶
| Name | Description |
|---|---|
| TAbstractResourceWriter | Base abstract resource writer class |
| TResources.WriteToStream | Writes the contents of the object to a stream |