Name
GetProfileSections
Synopsis
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#">
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.