Page 1 of 1

INI

Posted: Thu Mar 04, 2010 9:42 pm
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

Posted: Fri Mar 05, 2010 2:52 pm
by jph_wacheski
Thanks for this one Kjell very handy,. Cheers!