fwrite & fdelete bug
#8

try this:
PHP код:
if(!fexist("updates.cfg"))
    {
        new 
File:handle fopen("updates.cfg"io_readwrite);
        
fclose(handle);
    }
    else
    {
        new 
File:file fopen("updates.cfg"io_readwrite), string[128];
        while(
fread(filestring))
            {
                if(
strfind(string"type:2") != -1)
                {
                    
string[5] = '1'// mark as implemented
                    
fwrite(filestring);
                }
            }
        
fclose(file);
    } 
Reply


Messages In This Thread
fwrite & fdelete bug - by NeXoR - 03.11.2016, 21:17
Re: fwrite & fdelete bug - by NeXoR - 04.11.2016, 06:20
Re: fwrite & fdelete bug - by NeXoR - 04.11.2016, 10:53
Re: fwrite & fdelete bug - by NeXoR - 05.11.2016, 10:14
Re: fwrite & fdelete bug - by Nero_3D - 05.11.2016, 15:53
Re: fwrite & fdelete bug - by NeXoR - 05.11.2016, 20:14
Re: fwrite & fdelete bug - by Yaa - 05.11.2016, 21:23
Re: fwrite & fdelete bug - by ZiGGi - 05.11.2016, 22:14
Re: fwrite & fdelete bug - by SickAttack - 05.11.2016, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)