I have an existing text file with a list of book names. I want to read those names & write a second text file with the names of duplicate entries. For example: SamsBookstore.txt might have
And Then It's Spring
Baby Bear Sees Blue
Beach Feet
Jimmy the Greatest!
Boot & Shoe
Baby Bear Sees Blue
Boy & Bot
Cat Tale
Creepy Carrots!
Jimmy the Greatest!

I would want the SamsDuplicates.txt to have:
Baby Bear Sees Blue
Jimmy the Greatest!

I already have some of this code, but i'm not sure if its common to post it in the thread or should i upload a file

Hi

Please post your code in the thread here so pleaple can see it easily. Depending on what your question is you may not need to post the whole thing. Use the code block button (the one after B and I) to format and line number it properly.
Explain exactly what help you are looking for.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.