Use Associate Array Object, not INI
Author: | steve
|
Submitted: | 26th January, 2003
|
Views: | 5233
| Rated: |
|
|
I've been using INI files for a while, but when I learned about Associate Array Object, I find it to be much better. Here is my reason:
1. AA Object allows you to easily encrypt your your data into binary files. So when you open the file, it is not text like INI. I consider that a big plus if you don't want people to easily hack into your save files
2. AA Object allows you to save the file besides under C:\windows\. This is good if you want to save the file in your directory
3. AA Object is much like INI in terms of programming. You name a "key" in AA Object just like naming an "item" using INI. However, one disadvantage is AA does not have "groups". But besides that, AA is pretty much similar to INI file.
*For those who uses INI and want to give AA a try, here are some differences: 1. start of frame -> load File. 2. when a "key" is modified, add: save file. Thats basically it!
|
|
|