$readini » History » Version 2
Per Amundsen, 02/23/2023 07:25 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$readini(filename, [np], section, item)* |
||
4 | |||
5 | Returns a single line of text from an INI file. |
||
6 | |||
7 | _See also [[$ini]]._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | 2 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | filename | INI file to read from. | |
||
14 | | [np] | (optional) | |
||
15 | | n | Don't evaluate any identifiers. | |
||
16 | | p | command <notextile>|</notextile> separators are treated as such instead of as plain text. | |
||
17 | | section | The INI section to read from. | |
||
18 | | item | The INI item to read. | |
||
19 | 1 | Per Amundsen | |
20 | *Example* |
||
21 | |||
22 | <pre> |
||
23 | ; Read $adiircini and retrieve the section 'Messages' and the item 'Timestamp'. |
||
24 | //echo -ag $readini($adiircini, Messages, Timestamp) |
||
25 | </pre> |