Global $sRezData , $i
$hFile = FileOpen("StatsGrid.txt", 0)
If $hFile = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
While 1
$i+=1
$sLine= FileReadLine($hFile)
If @error = -1 Then ExitLoop
If $i=1 Then $aArrayShapka=StringSplit($sLine,',')
If $i=2 Then $aArrayDate=StringSplit($sLine,',')
Wend
FileClose($hFile)
For $i=1 To UBound($aArrayShapka)-1
If $aArrayShapka[$i]= "bb/100" Then
$sRezData=$aArrayDate[$i]
ExitLoop
EndIf
Next
MsgBox(0,'','Для : bb\100' & 'Найденное значение : ' & $sRezData)