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
global sizeLast := 0
getLastStr(LogWay)
{
newArray := []
FileRead, temp_text, % LogWay
logNew := StrSplit(temp_text, "`r`n")
if(logNew.Length() <= sizeLast)
Return
Loop, % logNew.Length() - sizeLast
newArray.Push(logNew[A_Index + sizeLast])
sizeLast := logNew.Length()
Return newArray
}