You just open both files in binary mode and compare every byte.
Of course, reading byte per byte is slow, so better is to read a block of bytes, say 256KB into a memory buffer and then compare the memory buffers.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Thread: Comparing 2 Files?Threaded View
|
Click Here to Expand Forum to Full Width |