Skip to Main Content
Programming ColdFusion MX, 2nd Edition
book

Programming ColdFusion MX, 2nd Edition

by Rob Brooks-Bilson
August 2003
Intermediate to advanced content levelIntermediate to advanced
1140 pages
68h 45m
English
O'Reilly Media, Inc.
Content preview from Programming ColdFusion MX, 2nd Edition

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#">
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming ColdFusion

Programming ColdFusion

Rob Brooks-Bilson

Publisher Resources

ISBN: 0596003803Supplemental ContentErrata Page