Changed OPEN to APPEND instead of overwrite, which seems to be what the OP wants.
He was forced to use append because he reopened the file for every line. There's no evidence either way as to what he wants to do.
In reply to Re^2: Aggregating Lines from a CSV who lines match a particular field and save those matches based on that matching field name
by ikegami
in thread Aggregating Lines from a CSV who lines match a particular field and save those matches based on that matching field name
by Knoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |