in reply to Read entire file from given folder

samirpatry,

I think, you have to use chomp to remove the newline character at the end of the given string (directory) through <STDIN>. If you show the input, it will be easy to give the exact solution else you will get answers only in assumption.

Prasad