August 2003
Intermediate to advanced
1140 pages
68h 45m
English
GetProfileSections
GetProfileSections(path_to_iniFile)Returns a structure containing all the sections from the specified
.ini file. Initialization files are used to set
operating system and application-specific variables during system
boot or application launch. Initialization files can be identified by
their .ini file extension. Each section name of
the .ini file is returned as a structure key.
The entries for each section are returned as a value for the
associated key. The following example gets the sections from an
.ini file named odbc.ini,
located in c:\winnt on Windows machines, and
dumps the contents using the cfdump tag:
<cfset MyIni = GetProfileSections('c:\winnt\odbc.ini')>
<cfdump var="#MyIni#">