Create a text file called TOONS.TXT with the following data:
Daffy Duck
Daffy Duck
Daisy Duck
Fred Flintstone
Mighty Mouse
Minnie Mouse
Porky Pig
Yosemite Sam
Write a program to find and display those names in the TOONS.TXT file that are repeated. Assume that the file has already been sorted into alphabetical order. When a name is found to be repeated, display it only once.
Having trouble writing this program, can anyone help?