Innomen wrote:
(this happens in steps, so I can't just display what was added)
Innomen wrote:
...of what I just added...
...I would like to investigate this...it would be much easier to "capture" what you sent out, than get it back later...why can't you append to the file & to a var at the same time?
Innomen wrote:
...sometimes this entry is malformed from one of the steps failing...
...can't you catch the failing step?...& not write to the file, if it failed?
As for getting the "last line of a file", unfortunately, there is only one way, loop over all lines, saving every line to the same var, which ends up holding the last line...
Code:
Loop, Read, %A_ScriptFullPath%
{
lastline:=A_LoopReadLine
}
Tooltip, lastline(%LastLine%)
msgbox, pause
return
;//I'm the last line!
...but I still think we need to eliminate the other option 1st...saving in a var, what you send to the file.