| | |
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
| Thread Tools | Search this Thread |
Tag cloud for Java
@param android api appinventor apple applet application arguments array arrays automation binary binarytree bluetooth bold c++ chat chatprogramusingobjects class classes client code codesnippet compare compiler component coordinates database doctype draw eclipse editor error event exception fractal freeze game givemetehcodez graphics gui guidancer health html ide image input int integer j2me java javac javaprojects jni jpanel jtable julia keytool linux list login loop map method methods mobile netbeans newbie nonstatic number oracle page plazmic print problem program programming project recursion scanner screen sell server set sharepoint size sms socket sort sourcelabs sql string swing system test testautomation threads time tree windows






