Sorry. My bad, I didn't provide explanations
What my code does is : from a "test.txt" file containing this
red station - 192.168.1.10
yellow station - 192.168.1.11
It first builds a "test.ini" file which content is
[stations]
red station=192.168.1.10
yellow station=192.168.1.11
Then using the IniReadSection function you can directly get a 2D array to use in the script
#Include <Array.au3>
#include <GUIConstants.au3>
; create the ini (for the example)
$newtext = "[stations]" & @crlf & StringReplace(FileRead("test.txt"), " - ", "=")
FileWrite("test.ini", $newtext)
; read to a 2D array
$res = IniReadSection("test.ini", "stations")
; _ArrayDisplay($res) ; display
GUICreate("QUAL ESTAÇÃO ?", 350, 50)
Local $idCombo = GUICtrlCreateCombo("", 10, 10, 200, 20)
GUICtrlSetData($idCombo, _ArrayToString($res, "|", 1, -1, "|", 0, 0))
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $idCombo
For $i = 1 to $res[0][0]
If GuiCtrlRead($idCombo) = $res[$i][0] Then Msgbox(0,"", $res[$i][1])
Next
EndSwitch
Wend