I really can't follow the logic of your program: it seems you are reading the file and, for each line read, parse all the lines read so far to check for ID equality. It is certainly not the fastest way to do it.
If I understand the problem, you want to group data from lines with the same ID and then print it in some format. What I'd do is to:
Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."
In reply to Re: Extracting records with unique ID
by psini
in thread Extracting records with unique ID
by mmittiga17
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |