$ini » History » Version 2
Per Amundsen, 08/14/2015 01:37 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$ini(file,topic|N,[item|N])* |
||
4 | |||
5 | 2 | Per Amundsen | Returns the name/Nth position of the specified topic/item in an INI/text file. |
6 | |||
7 | _See also [[$readini]]. |
||
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | file - File to read from. |
||
12 | topic|N - Topic or the Nth topic, if N = 0 number of topics, otherwise the Nth topic. |
||
13 | [item|N] - Item or the Nth item, if N = 0 number of item, otherwise the Nth item. (optional) |
||
14 | |||
15 | *Examples* |
||
16 | |||
17 | <pre> |
||
18 | ; Print number of topics in '$adiircini'. |
||
19 | //echo -ag $ini($adiircini,0) |
||
20 | |||
21 | ; Print the name of the first topic in '$adiircini. |
||
22 | //echo -ag $ini($adiircini,1) |
||
23 | |||
24 | ; Check if the topic 'Messages' exists. |
||
25 | //echo -ag $ini($adiirc,Messages) |
||
26 | </pre> |