I don't want to sound like I am beating a dead horse here, but that sounds identical to my solution except your way seems like it would be slower because instead of figuring it out as you go, you are processing the files twice.
Cheers - L~R
In reply to Re^4: Performance Trap - Opening/Closing Files Inside a Loop
by Limbic~Region
in thread Performance Trap - Opening/Closing Files Inside a Loop
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |