Remove duplicates while iterating

image the exact type is this but at iteration its showing like this image in the name type its also displaying the messages

Hi @pravin_calvin
Is the values are in text file or excel

Thanks
Ashwin S

text file

Hi @pravin_calvin
Use this within assign and print the item in for each item

string lines = File.ReadAllLines(“filename.txt”);
File.WriteAllLines(“filename.txt”, lines.Distinct().ToArray());

Thanks
Ashwin S

sample.txt (2.6 KB) this is the text file and i using regex pattern to split the text file

we have your sampl text @pravin_calvin can you send your output sample so that we can easily know what to do.
just create a sample of text document of your output

this is the output im getting