GETPROFILESECTIONS  
Description

Gets all the sections of an initialization file.

An initialization file assigns values to configuration variables, also known as entries, that are set when the system boots, the operating system comes up, or an application starts. An initialization file has the suffix INI; for example, boot.ini, Win32.ini.

 
Returns

An initialization file, as a struct whose format is as follows:

  • Each initialization file section name is a key in the struct
  • Each list of entries in a section of an initialization file is a value in the struct

If there is no value, returns an empty string.

 
Category

System functions

 
Function syntax
GetProfileSections(iniFile)
 
See also

GetProfileString, SetProfileString

 
History

ColdFusion MX: Added this function.

 
Parameters

Absolute path (drive, directory, filename, extension) of initialization file; for example, C:\boot.ini

INIFILE