add possibility to search a pattern stored in a file