INI

Use of external libraries (DLLs) from ZGE.

Moderator: Moderators

User avatar
Kjell
Posts: 1647
Joined: Sat Feb 23, 2008 11:15 pm

INI

Postby Kjell » Thu Mar 04, 2010 9:42 pm

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 368 times

User avatar
jph_wacheski
Posts: 1005
Joined: Sat Feb 16, 2008 8:10 pm
Location: Canada
Contact:

Postby jph_wacheski » Fri Mar 05, 2010 2:52 pm

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


Return to “Extensions”

Who is online

Users browsing this forum: No registered users and 1 guest