Quote:
I have develop application
If you're saying here that you wrote that method: I don't believe you. The English of the code comments doesn't match the English of your question at all.
However, that method compares two files byte-by-byte. I don't think you actually want that. It wouldn't make a lot of sense. Take a text document, make a copy of it and delete only the very first character in the copy. The contents would be the same except that one character is missing from the copy and all other characters are shifted one position. But if you compare the files byte-by-byte your percentual match would be totally random. You have to go for a completely different approach and it is too complex to explain it here. But I will give you these pointers:
Extracting text from PDF-Documents:
Toxy[
^]
"Diff"-Algorithms/Libraries:
http://stackoverflow.com/questions/138331/any-decent-text-diff-merge-engine-for-net[
^]
https://github.com/mmanela/diffplex[
^]