Re: how to avoid duplicates WHILE writing...
- From: "Tim Williams" <timjwilliams at gmail dot com>
- Date: Tue, 19 Sep 2006 12:56:08 -0700
Use the scripting.dictionary object and its "Exists()" method - if it exists then do not write it, if not then add the address to
the dictionary and write it out to the file.
--
Tim Williams
Palo Alto, CA
"Jason Simmons" <js@xxxxxx> wrote in message news:ens3iQC3GHA.3516@xxxxxxxxxxxxxxxxxxxxxxx
i have a big text file.
im reading the text file, looking for certain strings (email addresses), and
writing them to another file when i find them.
problem is there are a lot of duplicates. i cant figure out the logic as far
as how do i:
find an email address, write it IF it hasnt already been written.
i can think of some very inefficient ways to do this, but would love to see
a "good" way
thank you
.
- Follow-Ups:
- Re: how to avoid duplicates WHILE writing...
- From: Jason Simmons
- Re: how to avoid duplicates WHILE writing...
- References:
- how to avoid duplicates WHILE writing...
- From: Jason Simmons
- how to avoid duplicates WHILE writing...
- Prev by Date: Re: ping.. Richard Mueller (help)
- Next by Date: Re: ping.. Richard Mueller (help)
- Previous by thread: how to avoid duplicates WHILE writing...
- Next by thread: Re: how to avoid duplicates WHILE writing...
- Index(es):
Relevant Pages
|