I have such a line in my csdm.cfg
Code:
remove_objectives = abcd
how can I get the argument "abcd" in my plugin.. I wrote only beginning of such a stock:
PHP Code:
stock csdm_get_remove_objectives()
{
static ConfigsDir[128], Filename[150], ReadData[512]
get_configsdir(ConfigsDir, 127)
format(Filename, 139, "%s/csdm.cfg", ConfigsDir)
if(!file_exists(Filename))
return;
static len,currline
while(read_file(Filename, currline, ReadData, 511, len))
{
// check if the line is empty
if (!len)
continue;
// here should check does
// string "remove_objectives"
// exists on current line ( currline )
// and get what's after =
}
}
Any suggestions?