in reply to Re: opening a file passed into sub as refin thread opening a file passed into sub as ref