in reply to Re: Open Filehandle once
in thread Open Filehandle once

Thank you for your help and your fast reply. I have included your Code in my script and it is working.