lookupfile search function. add endwise delimate