Originally posted as a Categorized Question.
In reply to How will you compare the contents of directory with the contents of a flat file by keshu