global sizeLast getLastStr LogWay newArray FileRead temp_text LogWay l

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