I have file called a.ini
containing two section :
[Section1]
name1=abc
name2=xyz
name3=def
[Section2]
class1=1st
class2=2nd
class3=3rd
I want to get this in to following output using autoit:
abc 1st
xyz 2nd
def 3rd
With the following code I am getting only abc
, xyz
, def
. How do I read at the same time from both sections simultaneously?
Local $var = IniReadSection(@ScriptDir & "a.ini", "section1")
If @error Then
MsgBox(4096, "", "Error occurred, probably no INI file.")
Else
For $i = 1 To $var[0][0]
MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1])
Next
EndIf