• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

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#">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint