thanks a lot themage. most of the time I am using the solution which you have given to acheive my requirement. thanks a lot for spending your valuable time for reading my node and replied for that.
Comment on Re^2: specifying file extension in opendir function