in reply to help with error 'readline() on unopened filehandle'
I would have thought the error message was fairly self-explanatory. See open.
-- Ken