Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » compare two files(I lost this function)
compare two files [message #1761177] Mon, 08 May 2017 15:23 Go to next message
Shlomo Belleli is currently offline Shlomo BelleliFriend
Messages: 8
Registered: July 2012
Junior Member
Version: Neon.3 Release (4.6.3)
Build id: 20170314-1500

It was there, now I don't have it (the option)

when selecting two files with compare from menu, I got only the API baseline option

Re: compare two files [message #1772468 is a reply to message #1761177] Mon, 11 September 2017 06:46 Go to previous message
Eclipse UserFriend
public class compareFiles {
public static void main(String[] args) throws Exception {
/* Get the files to be compared first */
File test_file_1= new File(args[0]);
File test_file_2= new File(args[1]);
boolean compareResult=FileUtils.contentEquals(test_file_1,test_file_2);
System.out.println("Are the files same? " + compareResult);
Previous Topic:Unhandled event loop exception and outOfMemory when sharing project
Next Topic:getElements() doesn't work in Eclipse 4.4, but works in 4.2
Goto Forum:

Current Time: Wed Oct 17 09:09:20 GMT 2018

Powered by FUDForum. Page generated in 0.02235 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top