I was able to string split the very first line and assign it to variables, but for some reason the script doesn't move to the next line and do the same.
help would be appreciated.
Here is my code:
Code: Select all
fileData =
(
horse:1234
dog:9912
cat:8136
bear:0075
)
F1::
lineIndex := 1
Loop, Parse, fileData, `n
{
if (A_Index == lineIndex) {
Details = %A_LoopField%
StringSplit, UserArray, Details, `:
Loop, %UserArray0%
{
Content := UserArray%A_Index%
MsgBox, Number %A_Index% is %Content%.
}
lineIndex++
break
}
}
Return