Writeini » History » Version 4
Per Amundsen, 02/16/2023 05:09 PM
| 1 | 2 | Per Amundsen | _Added in 1.9.0_ |
|---|---|---|---|
| 2 | 1 | Per Amundsen | |
| 3 | 3 | Per Amundsen | */writeini [-nz] <inifile> <section> <item> <value>* |
| 4 | 1 | Per Amundsen | |
| 5 | *Switches* |
||
| 6 | |||
| 7 | 4 | Per Amundsen | table(ktable). |
| 8 | |*Switch*|*Description*| |
||
| 9 | | -n | Forces AdiIRC to write to an INI file, even if it's bigger then 64k (obsolete) | |
||
| 10 | | -z | Allow writing empty <value>. | |
||
| 11 | 1 | Per Amundsen | |
| 12 | *Parameters* |
||
| 13 | |||
| 14 | 4 | Per Amundsen | table(ktable). |
| 15 | |*Parameter*|*Description*| |
||
| 16 | | <inifile> | The file to write to. | |
||
| 17 | | <section> | The section to write. | |
||
| 18 | | <item> | The item to write. | |
||
| 19 | | <value> | The value to write. | |
||
| 20 | 1 | Per Amundsen | |
| 21 | *Example* |
||
| 22 | |||
| 23 | <pre> |
||
| 24 | ;Write a few items to a file. |
||
| 25 | /writeini abb.ini abbreviations lol Laughing Out Loud |
||
| 26 | /writeini abb.ini abbreviations rofl Rolling On the Floor, Laughing |
||
| 27 | |||
| 28 | ;Print a line from abb.ini. |
||
| 29 | //echo -a $readini(abb.ini, n, abbreviations, lol) |
||
| 30 | </pre> |