- Aug
- 2,815
- 147
I'm currently using a UDF to obtain the last line of a file;
In the @WORD function,
you can specify the rightmost word by setting n to -0.
I'd like to suggest the following for the @LINE function;
...to obtain the last line in a file.
Ref: @WORD TCC internal variable function
Ref: @LINE TCC internal variable function
Joe
Code:
function LastLine=`%@line[%1,%@lines[%1]]`
In the @WORD function,
you can specify the rightmost word by setting n to -0.
I'd like to suggest the following for the @LINE function;
Code:
set LastLine=%@line[%temp\QResults.txt,-0]
Ref: @WORD TCC internal variable function
Ref: @LINE TCC internal variable function
Joe