Difference between revisions of "Category:Ini"
From Scriptwiki
Line 4: | Line 4: | ||
'''Note''' that you should '''not''' write to an ini file activly used by mIRC (e.g. mirc.ini). | '''Note''' that you should '''not''' write to an ini file activly used by mIRC (e.g. mirc.ini). | ||
== Structure == | == Structure == | ||
− | The basic | + | The basic structure of an ini file is: |
[topic1] | [topic1] | ||
− | + | item1=data | |
− | + | item2=data | |
.... | .... | ||
[topic2] | [topic2] |
Revision as of 16:31, 29 November 2005
What are ini files
Ini files are files with a "ini" extension. They are usually used to story configuration information for either windows or other applications. Although, you can use them to save all information you want to.
Note that you should not write to an ini file activly used by mIRC (e.g. mirc.ini).
Structure
The basic structure of an ini file is:
[topic1] item1=data item2=data .... [topic2] ....
Note that, because of this structure, you cannot use all characters in topics. For example, "[" and "]" aren't allowed.
Access to ini files
To write to an ini file, you can use /writeini or, to remove items or sections, /remini. To "read" them, you should use $readini and $ini, but you can of course use $read aswell.