You could use the OPEN and READLINE commands to find the line that contains "Total size compressed" and then split that line on spaces. Assuming that the text file always formats the lines the same (even if the lines aren't always in the same place), that would give you an array with the number being the second from the last element. You could then push those array elements into another array or just keep a running total.

Pseudo-code:

 Code:
$totalkb = 0

if OPEN(1,"textfile.txt") = 0
   $x = ReadLine(1)
   While @ERROR = 0
      if instr ($x,"Total size compressed")
         $tmp = split($x," ")
         $totalkb = $totalkb + val($tmp[ubound($tmp)-1])
      endif
      $x = ReadLine(1)
   Loop
endif


Edited by eriqjaffe (2009-06-16 04:27 PM)