in reply to Can't open file within subroutine

Ok it's working now. Thanks All :)