Code: Select all
FileRead, contents, filename.location
Loop, Parse, % contents, `n ; or whatever you parse by.
{
x++
array["here" x]:= A_LoopField ; <-------------------------- that that right there will actually still have the EOL sometimes.
}
Code: Select all
FileRead, contents, filename.location
Loop, Parse, % contents, `n ; or whatever you parse by.
{
x++
y:=StrLen(A_LoopField)
y--
newstr:= SubStr(A_LoopField, 1, y) ;<------------- substring it off.
array["here" x]:= newstr
}