I have function to check whether the two files are similar or not. So one thing I did is comparing the sizes of files. I am looking for a way to compare contents of files and get a match percentage. Depending on the percentage value I can decide whether they are mostly equal or not?
If it is text file, I am reading the text and computing the difference. But what if it is a excel or any other file which have images like that??