I want to replace a binary file if the contents are different.
So I need to be able to compare the binary file (without having to deserialize it).
Is this possible?
I used binary formatter to save the file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can generate the MD5 or SHA1 hash for each set of file data and then compare them.
Sample code (error checking removed for clarity):