Project

General

Profile

$readini » History » Revision 2

Revision 1 (Per Amundsen, 08/14/2015 01:36 PM) → Revision 2/3 (Per Amundsen, 02/23/2023 07:25 PM)

_Added in 1.9.0_ 

 *$readini(filename, [np], section, item)* 

 Returns a single line of text from an INI file. 

 _See also [[$ini]]._ 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | filename | - INI file to read from. | 
 | [np] | - (optional) | 
 | <pre> 
 n | - Don't evaluate any identifiers. | 
 | p - command | command <notextile>|</notextile> separators are treated as such instead of as plain text. | 
 | </pre> 

 section | - The INI section to read from. | 
 | item | - The INI item to read. | 

 *Example* 

 <pre> 
 ; Read $adiircini and retrieve the section 'Messages' and the item 'Timestamp'. 
 //echo -ag $readini($adiircini, Messages, Timestamp) 
 </pre>