| | |
Comparing files on Mac
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2007
Posts: 60
Reputation:
Solved Threads: 0
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
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
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
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
Check out my New Bike at my Public Profile at the "About Me" tab
![]() |
Similar Threads
- Virex Scan (Mac Software)
Other Threads in the Java Forum
- Previous Thread: JTable help
- Next Thread: Connection Pools
Views: 356 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android api apple applet application arguments array arrays automation binary block bluetooth chat class classes client code compile component database developmenthelp draw eclipse encode error event exception file fractal freeze game gameprogramming givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number object online oracle print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing system template test textfields threads time title transfer tree tutorial-sample update windows working






