Ini Files

Post Reply
PeterHarmes
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Ini Files

Post by PeterHarmes »

Hi,

Are there any standard functions available that could open an ini file and return to an array the details of a specified section?

for example if you had an ini file like this:

[Section 1]
Setting 1=Yes
Setting 2=No

[Section 2]
Setting 1=Yes
Setting 2=Yes

Is there a function where you can pass "Section 2" and it would return a multi dimensional array containing:
[Setting 1] [Yes]
[Setting 2] [Yes]

Hope the above is clear!!

Thanks in advance

Pete
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

Please review samples\TestIni3.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
PeterHarmes
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Post by PeterHarmes »

Thanks Antonio, i'll give that a go
Post Reply