RSS Forums RSS

Comparing files on Mac

Please support our Java advertiser: Programming Forums
Reply
Posts: 59
Reputation: Grub is an unknown quantity at this point 
Solved Threads: 0
Grub Grub is offline Offline
Junior Poster in Training

Comparing files on Mac

  #1  
Oct 6th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,158
Reputation: javaAddict is just really nice javaAddict is just really nice javaAddict is just really nice javaAddict is just really nice 
Solved Threads: 163
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Veteran Poster

Re: Comparing files on Mac

  #2  
Oct 6th, 2008
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
There are 3 ways to do things:
The right way, the wrong way,
And The Object Oriented Way.

When you do things your way, make sure you don't forget the Object Oriented Way
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Java Forum
Views: 299 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:11 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC