Can someone help me? I need a stock to find key by the phrase. I wrote something like that:
PHP Code:
stock nfv_get_key(const filename[], const identifier=';', phrase[], output[], len)
{
if( !file_exists(filename) )
return 0;
new f = fopen(filename, "rt");
new _data[512];
while( !feof(f) )
{
fgets(f, _data, charsmax(_data));
if( _data[0] == identifier && equal( phrase, _data ) )
{
format( output, len, "%s", _data);
break;
}
}
fclose(f)
return 0;
}
But don't work.