|
This is a good feature you are
thinking of David! Good luck and have a great weekend!
More comments
inline
below:
Very true about SQL. I should have specified that only if the filesizes were the same, should the MD5 hashes be computed to check for a match.
If you're trying to compare text files, then the issue of encoding comes up and you're approach of using the StreamReader class seems to be correct because it will give you UNICODE inside the framework even though the physical file maybe saved as ANSI, UNICODE, UTF-8, KOR-8, etc.
There's also the slippery slope when comparing content. Are two XML files equivalent if their DOMs are congruent? Are caps significant in a SQL file? You'll eventually get to the point of what if one person codes with the curly braces with the if, and the other person doesn't. :-)
Personally, I would lean towards binary compares, rather than text content compares.
Yes, it'll have to read the entire file, but it won't keep the entire file in memory like the strings do.
See:
http://msdn.microsoft.com/library/default.asp?url="">
and:
http://msdn.microsoft.com/library/default.asp?url="">
Check out: http://msdn.microsoft.com/library/default.asp?url="">
Most people don't even now about theirs existence nor take advantage of them.
You're very welcome.
|
Title: Message
- [nant-dev] Who's the happy moderator who ate my <... David Reed
- RE: [nant-dev] Who's the happy moderator who at... Anthony LoveFrancisco
- RE: [nant-dev] Who's the happy moderator who at... David Reed
- Re: [nant-dev] Who's the happy moderator wh... Ian MacLean
- Anthony LoveFrancisco
