mattkw80
Well-known member
Hey Everyone,
Having trouble removing Duplicate lines in a text file. (Exact Duplicate lines).
If I have a text file called animals.txt, how can I use the StreamWriter to loop through a text file, and erase and duplicate lines?
For example: If the text files says this...
cat
cat
cat
dog
bird
Then I would want the output to be:
cat
dog
bird
With all line spaces also left over.
Any help is greatly appreciated.
Matt
Having trouble removing Duplicate lines in a text file. (Exact Duplicate lines).
If I have a text file called animals.txt, how can I use the StreamWriter to loop through a text file, and erase and duplicate lines?
For example: If the text files says this...
cat
cat
cat
dog
bird
Then I would want the output to be:
cat
dog
bird
With all line spaces also left over.
Any help is greatly appreciated.
Matt