Better handling of Preference-Files (INI)
Posted: Thu Nov 16, 2006 2:07 pm
Hello!
Normal file operations are controlled by using IDs. Why don't do the same with Preference-Files (INI-Files).
For example, this code doesn't work:
In my opinion, it's better to use IDs, because there are many reasons. For example, I must work with 2 INIs in my current projects now: my own and an external INI-file from another program.
Well, the Workaorund to temporaryly open and close the unneeded INI files is bad.
What do you think about my idea?
Normal file operations are controlled by using IDs. Why don't do the same with Preference-Files (INI-Files).
For example, this code doesn't work:
Code: Select all
CreatePreferences("1.ini")
WritePreferenceString("111", "111")
CreatePreferences("2.ini")
WritePreferenceString("222", "2222")
ClosePreferences()
WritePreferenceString("333", "3333") ; This key/val-pair is not written into the first ini-file
ClosePreferences()
Well, the Workaorund to temporaryly open and close the unneeded INI files is bad.
What do you think about my idea?
