Quote:
Did you even read the help file?

/help $ini
$ini(file,topic/N,item/N)
Returns the name/Nth position of the specified topic/item in an ini/text file.

$ini(mirc.ini,0) returns total number of topics in mirc.ini
$ini(mirc.ini,1) returns name of 1st topic in mirc.ini
$ini(mirc.ini,help) returns Nth position of topic help if it exists, or returns 0 if it doesn't exist

The item/N parameter is optional. If you specify specify N = 0, it returns the total number of topics/items.

-

$ini(file.ini,3000,0)
3000 is well not refrence a topic name but rather it refrences the 3000th topic, which i assume there isnt one. This is the reason for the $null return, correct as per the help file.


Yeah, I read the help file. Now, is it specified in the help file that topic and item mustn't be a numerical because mirc use it for the position ? No. It is may be not a bug but a I tjink it is a source of problem when using ini files which comport numerical topics. May be a note in the help file can help it.

The other reason is was I used the last token with a number and not the two last tokens with a number (I don't know if you understand, sorry). I don't know this method before. Now, I know it. thanks

Thanks for your code Fiberoptics and others