in a txt file, how do you check for duplicates, and ignore the ones that are?