| Author |
Comparing two Files
|
martin chile
Greenhorn
Joined: Jun 24, 2002
Posts: 21
|
|
I want to compare two Files, one of them might be different(just a changed character or a whole paragraph more). Comparing the length or the last modified date is not working when there are small differences. Is there a fast way to read the checksum or something like that, so that i don't have to open the documents to look by my own. Thanks for helping me! Martin
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8259
|
|
|
Read the files in using different instances of java.util.zip.CheckedInputStream, then compare their checksums.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: Comparing two Files
|
|
|