Page 1 of 1

INI utilities?

Posted: Tue Jun 12, 2012 12:07 pm
by John
Are there any BR! open source functions to read and write to INI files? I need it respect section headings handle duplicate labels in separate sections, roughly follow standard ini file rough standards, etc.

Perhaps in fnsnap or anywhere else...

Just thought it'd be a good idea to ask before I went to writing my own again.

-John Bowman
ACS

Posted: Tue Jun 12, 2012 12:45 pm
by Susan Smith
I didn't realize that there were standards for INI files! I'd love to know more. I have one tiny INI file, with only one heading in it, but I plan to expand it as I have time. I obviously made up my own rules :)

-- Susan

! SRA.INI 05/29/12
! Version 1.00
!
:QSRAEMPS
! The following people are allowed access to employee records.
! Everyone else will get a message saying that they are not authorized.
! Applies to: LNIMEMBR, ~STR_VIEW_MBRS
.
Bob
Carole
Carrol
Lettie
Susan
Mai
.

Posted: Wed Jun 13, 2012 8:31 am
by John
http://en.wikipedia.org/wiki/INI_file#C ... ensitivity

The INI file format is an informal standard for configuration files for some platforms or software. INI files are simple text files with a basic structure composed of "sections" and "properties".

Code: Select all

; last modified 1 April 2001 by John Doe
[owner]
name=John Doe
organization=Acme Widgets Inc.
 
[database]
; use IP address in case network name resolution is not working
server=192.0.2.62     
port=143
file = "payroll.dat"