943,832 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 443
  • Java RSS
Oct 6th, 2008
0

Comparing files on Mac

Expand Post »
Hi.

The program I am writing is for a mac and am doing so in Java.
I am writing a program that finds Identical files or very similar files, not necessarily identical but very Similar. Now I can thus far compare files by name but some files are identical but have different names. Are there any other ways to compare files other than name, size is not really ideal nor is date created or modified as these can be different yet the files are identical.



Thank you in advance
Similar Threads
Reputation Points: 14
Solved Threads: 0
Junior Poster in Training
Grub is offline Offline
60 posts
since Oct 2007
Oct 6th, 2008
0

Re: Comparing files on Mac

You could compare the bytes you get from reading the file, but I have never used that way and I don't know how it will work.

As far as the almost identical you will need to decide the ruling.

http://java.sun.com/javase/6/docs/ap...putStream.html

http://java.sun.com/javase/6/docs/ap...redReader.html

http://java.sun.com/javase/6/docs/ap...putStream.html
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,259 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: JTable help
Next Thread in Java Forum Timeline: Connection Pools





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC