To find the difference between two files
1 posts in topic
Flat View  Flat View

Posted By:   Arun_Sista
Posted On:   Saturday, December 18, 2004 10:12 AM

Is it possible to find out the difference between two file using java. Eg. I have a file c:a.txt and d:a.txt. I need to figure out if these two files are essentially the same. Is there any standard api that can do this. e.g using checksum or some other mechanism. File.compareTo/equal method aren't of help. Any inputs on this issue would be immensely helpful.

Re: To find the difference between two files

Posted By:   Stephen_Ostermiller  
Posted On:   Sunday, December 19, 2004 04:36 AM

How about opening a stream to each file, reading from each stream one byte at a time and comparing each and every byte?
About | Sitemap | Contact