DataType:iniadvfile
Returns information on the ini file
This Data Type is added by core MacroQuest.
iniadvfile is used as a return type by these members: [ Toggle ]
Page | Member | Description |
---|---|---|
iniadv | File[<filename>] | Returns section names in the specified ini file in either the /macros or /config folder. You may also use an absolute path. |
Members
Type | Member | Description |
---|---|---|
bool | Exists | Tells you if the given file exists |
iniadvfilesection | Section | Access the type without a specific section named. |
Section[<name>] | Access a specific section of the ini file. |
Examples
If sample.ini contains:
[SectionOne]
key1=foo
key2=bar
[SectionTwo]
key1=baz
key3=duplicate
key3=foobar
And you type...
/echo ${Ini.File[sample.ini].Exists}
returns "TRUE"