Efficient Text File Copy

From: Materialised (materialised_at_privacy.net)
Date: 01/31/04


Date: Sat, 31 Jan 2004 01:08:19 +0000

Hi everyone,

What I am wanting to do, is to copy, a simple plain text file, to
another file, but omitting duplicate items.

The way I thought of doing this, involved copying all the items into a
array, and then looping through that array looking for duplicates,
removing them, and then writing to another file.

This seems a very long and drawn out way of doing this to me, and also I
do not know the initial size of the array required will be.

Could anyone suggest a effective efficient way of doing this?

Thanks
Mick



Relevant Pages

  • Efficient Text File Copy
    ... What I am wanting to do, is to copy, a simple plain text file, to ... another file, but omitting duplicate items. ... array, and then looping through that array looking for duplicates, ...
    (comp.lang.c)
  • Re: Efficient Text File Copy
    ... | What I am wanting to do, is to copy, a simple plain text file, to ... | another file, but omitting duplicate items. ... | array, and then looping through that array looking for duplicates, ... Can you show us a few lines of the file format ?, ...
    (comp.lang.c)
  • Re: Efficient Text File Copy
    ... | What I am wanting to do, is to copy, a simple plain text file, to ... | another file, but omitting duplicate items. ... | array, and then looping through that array looking for duplicates, ... Can you show us a few lines of the file format ?, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Efficient Text File Copy
    ... > another file, but omitting duplicate items. ... > array, and then looping through that array looking for duplicates, ... if input file opened okay ... if output file opened okay ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Efficient Text File Copy
    ... > another file, but omitting duplicate items. ... > array, and then looping through that array looking for duplicates, ... if input file opened okay ... if output file opened okay ...
    (comp.lang.c)