Thanks for your reply will try the same and let you know the result.
In reply to Re^2: loop exits after printing the file by myfrndjk in thread loop exits after printing the file by myfrndjk