I've data queried from the db that looks a lot like the following
Job Site File List
-------------------------------
1 SiteA file2.txt 2
2 SiteB file2.txt 2
3 SiteA file23.txt 23
4 SiteC file2.txt 2
5 SiteB file12.txt 12
6 SiteA file29.txt 29
7 SiteB file28.txt 28
I am supposed to initiate instances for each site (sites A, B & C), and then do processing with, i.e., for eg, for siteA, work on file2.txt, file23.txt & file29.txt. This "processing" can happen in some order, but it has to be one after the other (not simultaneous).
So my 1st task is the collate the sites - and create instances for each. How do I do this?
PS: I figured for the processing part I should use some sort of an iterator pattern...I prefer solutions in any modern complier language...like c#, vb, c++, etc...