By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,199 Members | 1,458 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,199 IT Pros & Developers. It's quick & easy.

File comparison question

P: n/a
I'm teaching myself VB6. As a first project, I've decided to work on
a Window's version of the Unix command, "diff" -- with a few twists.
But being unfamiliar with VB, I am unsure as to how to best compare
two files and/or directories.

A byte-by-byte comparison would probably be best but slow, correct?
What about computing a CRC for each file and then compare those. any
faster?
OR
Compare file-sizes, and create/access times. Would that be a reliable
enough comparison?

Any thoughts, comments, suggestions, pointers to sample code, etc.
welcome.

Bill W
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 29 Sep 2003 08:09:00 -0700, bw******@lucent.com (Bill W.) wrote:
I'm teaching myself VB6. As a first project, I've decided to work on
a Window's version of the Unix command, "diff" -- with a few twists.
But being unfamiliar with VB, I am unsure as to how to best compare
two files and/or directories.

A byte-by-byte comparison would probably be best but slow, correct?
What about computing a CRC for each file and then compare those. any
faster? Calculating a CRC involves reading every byte
- there is also (a very small) possibility of errorOR
Compare file-sizes, and create/access times. Would that be a reliable
enough comparison? File sizes are Ok - create/access datetimes are irrelevant
Any thoughts, comments, suggestions, pointers to sample code, etc.
welcome.

Bill W


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.