Hello again.
I did not do any test yet, but my attention stucked here:
PHP Code:
_ini_write(const file[], const section[], const key[], value[])
{
// some code here
while (!feof(hFile))
{
if (fgets(hFile, szBuffer, charsmax(szBuffer)) == 0) // HERE
break;
// some code here
Doesn't it means that it stops to search if it finds an empty line?
So, if our file is looking this way:
PHP Code:
[sec1]
key1=value1
[sec2]
key2=value2
it won't find [sec2] when we are looking for it, because of an empty line at the middle.
Am i right?
__________________