Results 1 to 3 of 3
Thread: Compare 2 files
- 10-12-2011, 07:06 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 1
- Rep Power
- 0
Compare 2 files
I would like to compare 2 files in Java. please send me the code snipt for this scenario:
File1:
./divisions/Z7346/Z1111/0064C/123456/123456_aug11.pdf
./divisions/Z7346/Z3333/0064C/434234/345678_aug11.pdf
./divisions/Z7346/Z4444/0064C/343444/234567_aug11.pdf
File2:
./divisions/Z7346/Z2260/0064C/123456/123456_aug11.pdf
./divisions/Z7346/Z2222/0064C/434234/345678_aug11.pdf
./divisions/Z7346/Z3333/0064C/343444/234567_aug11.pdf
It needs to compare these files and print the diffrence by comparing the report name(234567_aug11.pdf,345678_aug11.pdf)
Eg. Check if the report 345678_aug11.pdf is same in both file 1 and 2. The file name will normally be the last 16 characters of a line.Last edited by GTMPAL; 10-12-2011 at 07:24 PM.
- 10-12-2011, 07:18 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,638
- Rep Power
- 13
Re: Compare 2 files
That is not how this works. You should not expect a stranger to do this for you, unpaid, in their spare time - it is your responsibility to complete. We can help you along the way, if you make an effort and ask a specific question.
A library worth looking into: JLibDiff | Free Development software downloads at SourceForge.net
Suggested reading: How to ask questions
- 10-12-2011, 07:28 PM #3
Similar Threads
-
Compare 2 pdf files
By kris_java in forum Advanced JavaReplies: 9Last Post: 12-07-2012, 01:22 PM -
treeset compare
By samaravadhi in forum New To JavaReplies: 6Last Post: 09-07-2011, 04:59 PM -
How compare two String?
By artemff in forum New To JavaReplies: 8Last Post: 08-29-2011, 09:00 AM -
Compare 2 large files
By bezudar in forum Advanced JavaReplies: 3Last Post: 11-23-2008, 03:18 AM -
Compare 2 XML
By Peter in forum XMLReplies: 1Last Post: 07-05-2007, 03:58 AM
Bookmarks