well, if the external file is not huge and it handles the read properly, surely the file I/O would be reduced by it.

say, a proper tail.exe does a search for the EOL's and prints/reads only the needed lines thus minimizing the I/O.

anyway, with the above type example, you would get more I/O than simply reading the whole file with kix and replacing it with the new one with just some of the lines in it.

anyway, you could do a approximation by the size of the file and calculate how many lines you wanna strip.
then call more with it:
shell "%comspec% /c more myfile.old +"+$amountToSkip+" > myfile.new"


[edit]
hmm...
more is not good.
it doesn't have switch for batch-mode...


Edited by Lonkero (2005-09-05 02:12 AM)
_________________________
!

download KiXnet