|
-
Mar 26th, 2008, 10:43 AM
#1
Thread Starter
Junior Member
How to remove dublicate words in a file?
I have a text file that contains:
alt="black" alt="white" alt="red" alt="green" alt="black"
alt="red" alt="white"...
how to make output like this:
alt="black" alt="white" alt="red" alt="green" ???
-
Mar 26th, 2008, 10:58 AM
#2
Hyperactive Member
Re: How to remove dublicate words in a file?
Use queue of strings:
try word by word - if it is in queue do nothing, if not enqueue it.
At the end, dequeue all strings.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|