improving read file handling.
improving read file handling.