TConfiguration.DefaultFileName Method
The JSON file an application reads by convention: the one named by the environment variable <APP>_CONFIG when it is set, otherwise <app>.json beside the executable.
Remarks
The variable name is the application name in upper case, with every character that is not a letter, a digit or an underscore replaced by an underscore: appserver gives APPSERVER_CONFIG.
Syntax
Unit: Bcl.Configuration
class function TConfiguration.DefaultFileName(const AAppName: string): string; static;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AAppName | string | The application name. When empty, the name of the executable without its extension. |