16.05.2012, 13:25
Dini or Dudb are cool if you want easy scripting and don't care about the speed of your script (later on once your script reaches ~50k lines that is).
Dini/Dudb have the disadvantage that they close/open files and loop through them with their seperate Dini_Set and udb_UserSet which is way slower than if you properly use pure fwrite. (which those tools also use, but in a less effective way)
EDIT: Look at the dini include file and see what "Dini_Set" does. Instead of opening the file repeatively 10 times you could just fopen(FileName, io_read); it once and then fwrite the values into it.
Dini/Dudb have the disadvantage that they close/open files and loop through them with their seperate Dini_Set and udb_UserSet which is way slower than if you properly use pure fwrite. (which those tools also use, but in a less effective way)
EDIT: Look at the dini include file and see what "Dini_Set" does. Instead of opening the file repeatively 10 times you could just fopen(FileName, io_read); it once and then fwrite the values into it.