Project

General

Profile

$ini » History » Revision 3

Revision 2 (Per Amundsen, 08/14/2015 01:37 PM) → Revision 3/5 (Per Amundsen, 08/14/2015 01:37 PM)

_Added in 1.9.0_ 

 *$ini(file,topic|N,[item|N])* 

 Returns the name/Nth position of the specified topic/item in an INI/text file. 

 _See also [[$readini]]._ [[$readini]]. 

 *Parameters* 

 file - File to read from. 
 topic|N - Topic or the Nth topic, if N = 0 number of topics, otherwise the Nth topic. 
 [item|N] - Item or the Nth item, if N = 0 number of item, otherwise the Nth item. (optional) 

 *Examples* 

 <pre> 
 ; Print number of topics in '$adiircini'. 
 //echo -ag $ini($adiircini,0) 

 ; Print the name of the first topic in '$adiircini. 
 //echo -ag $ini($adiircini,1) 

 ; Check if the topic 'Messages' exists. 
 //echo -ag $ini($adiirc,Messages) 
 </pre>