INI

Use of external libraries (DLLs) from ZGE.

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1910
Joined: Sat Feb 23, 2008 11:15 pm

INI

Post by Kjell »

8)

For people that want to use INI files without a dll, or going into the ZGE source. A bit of a unorthodox implementation, as you'd normally use associative arrays, or even better .. associative lists, but since those aren't supported, it's build on plain-ol' Arrays.

The attached example shows how to read from a ini .. but simply change the FileAction to write to write :) Make sure to set the Array sizes ( Section / Parameter / Buffer ) to suit the limitations you want to support.

+ @Ville : A read-only filesize property on the File component would be handy.

Please report any suggestions and / or problems.

K
Attachments
Ini.zip
(3.62 KiB) Downloaded 974 times
User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Post by jph_wacheski »

Thanks for this one Kjell very handy,. Cheers!
iterationGAMES.com
Post Reply