in reply to Re^4: extracting from 1 file and adding to another.
in thread extracting from 1 file and adding to another.

But even if you did want to open the file with each entry, I suspect you would want to close it with each entry, also.  openand closeare reciprocal functions; they should be used reciprocally.

Of course, that would only enhance the inherent inefficiency of repeatedly opening the same file over and over again.  :-)