class LogRead
{
__New(LogWay, _size := 0)
{
this.LogWay := LogWay
this.sizeLast := _size
}
getLastStr()
{
newArray := []
FileRead, temp_text, % this.LogWay
logNew := StrSplit(temp_text, "`r`n")
if(logNew.Length() <= this.sizeLast)
{
this.sizeLast := logNew.Length()
Return
}
Loop, % logNew.Length() - this.sizeLast
newArray.Push(logNew[A_Index + this.sizeLast])
this.sizeLast := logNew.Length()
Return newArray
}
}