I have a text file which contains several bit of data, one being the time(including seconds), and another bit containing a random 6 character/number string, for example:


AAAAAB 1:1:1
AAAAAC 1:1:1
AAAAAA 1:1:2
AAAAAB 1:1:2
AAAAAA 1:1:2

Note: other information is between these but these are the two which i intend to use.

What i wish to do is make an exe which constantly runs which detects the newest times which have being added to the text file, on this example 1:1:2, and then follow by adding how many there are into a display box on the exe. For example in the sequence above the text box would display 3, but next is what i think will be trickiest, on line 3 and 5 the first 6 character/numbers are the same, so i only wish for the text box to increase by 1. Can the above be acheived and can someone prabs give me an example bit of coding or as much as i need.
Thank you very much,
any questions, as this is a mouth full, please reply.