Gets all the sections of an initialization file.
Returns 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

getProfileSections(path [,encoding]) → returns struct

Argument Reference

path string

Absolute path of initialization file

encoding string

CF 11+ Encoding of the initialization (ini) file
  • utf-8
  • iso-8859-1
  • windows-1252
  • us-ascii
  • shift_jis
  • iso-2022-jp
  • euc-jp
  • euc-kr
  • big5
  • euc-cn
  • utf-16

Sample code invoking the getProfileSections function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub