Console application that opens and read a file then remove duplicates