in reply to About Filehandles

Your approach may run out of filehandles. If it does then you may want to use FileCache to exceed the usual limits on filehandles.