View Single Post
E1_531G
Senior Member
Join Date: Dec 2017
Old 04-05-2019 , 05:06   Re: INI File Reader/Writer AMXX 1.9
Reply With Quote #7

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(hFileszBuffercharsmax(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?
__________________
My English is A0
E1_531G is offline