getLastStr LogWay newArray FileRead temp_text LogWay sizeNew StrSplit

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
getLastStr(LogWay)
{
newArray := []
FileRead, temp_text, % LogWay
sizeNew := StrSplit(temp_text, "`r`n")
if(sizeNew.Length() >= sizeLast)
Return
sizeLast := sizeNew.Length()
Loop, Parse, sizeNew
{
newArray.Push(sizeNew[A_Index + sizeLast])
}
Return newArray
}