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?
