Re: VB6 and simple coding?
That would be quite simple in either VB6 or .NET. If you have not used either one, then I would suggest going with .NET, because VB6 is no longer supported by MS, and is probably going to fade over time. The steps would be these:
1) Read the lines into an array of strings or similar structure in memory (faster and easier than dealing with the file)
2) Find the lines that have the text you are looking for.
3) Use InStr, Substring, Left, Right, Mid, etc (depending on the language) to extract the portion of the string you want.
4) Convert it into a number.
5) Add.
6) Repeat until you've gone through all the lines.
The exact coding for each step depends largely on the language chosen, but the steps will be the same.
Re: VB6 and simple coding?
VB is overkill, even. You could probably do that quite simply using head, tail and grep.
UNIX utilities for Windows
But if you don't know how to use those then don't bother learning just for this task. VB6 is fine.
Re: VB6 and simple coding?
Pen, you're cheating - you're a Unoid. :)