Re: Don: Compare Directories and Files
Alan Oxley wrote:
>
> Hi Don,
> Maybe this method will be faster:
> 1. Sort both listings, seperately
> 2. Have a routine that steps through both lists, comparing.
> a) Grab one record each from list1 and list2
> b) if two records are equal, go back to (a).
> c) If the record in list1 is greater than the record in list2, then
> the record in list2 is missing from list1; assume that the list1
> record is a new one. Write it, get another record from list2, goto (a)
> d) Same as (c) but transpose the 2 lists
>
> I have an example of this in the archive, it speeds through megabytes of data
> in less than a second, if the data is in cache. See "difflist" by me.
>
> Cheers
> Alan
Hello again Alan,
I forgot to mention you have two difflist files in the Archives, which one
should I download?
Don Cole
|
Not Categorized, Please Help
|
|