It's me again, with for some people here probably an easy thing to code. I have this txt file, with in it "tags" with a number value that I need to add up all together. The parts in the txt file that I need look like this: So. The code needs to read the value after <segment bytes=", and add it all together. (it's always on a new line) The times that <segment bytes=" is in the file could be one time or many times! Now. How could I do this the best way? Any help appreciated!