Excellent suggestions.
IonFilipski, I'll look into the TPersistent first.
onrdbandit, I especially like number 3. I could definately have parallell TStringLists and save them to disk as my "compiled version" of the ini. Fortunately, my data structure is something like:
Data01 = fish...
The data is customizable, so hard-coding is not an option. I do the customization via and form and maintain the ini file. When the user changes it, I need to read it in, and then store it as a disk object.
Think of the ini file as a source code and the populated classes as the "compiled...
I have my own class defined. It contains some primatives, but also a couple of methods and some arrays of DynamicArrays (e.g., DynamicArray<AnsiString>[10]).
I populate this class at startup from an ini file (a large ini file) via TIniFile. Once populated, I want to be able to store the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.