Simple compare

Comparing files is easy. In the Navigator select file1.txt and file2.txt choose Compare With > Each Other from the context menu. 

Well that wasn't very interesting. Right about now you are probably staring at a dialog like the one below, which tells us the two files are the same. 

Compare popup

To make things a little more interesting edit file1.txt as follows:

Your file (file1.txt) should now look like this: 

This is line 2.
This is a much better line 3.
This is line 4.
This is line 4a and it is new
This is line 5.

Save the contents of the file by choosing File > Save (or pressing Ctrl+S).

Now we're really (honest we are) ready to do a compare. Once again select file1.txt and file2.txt and choose Compare With > Each Other in the Navigator's context menu.

A special compare editor opens. In the next section we will see how to use this compare editor.

Compare Editor

Copyright IBM Corporation 2000, 2003. All Rights Reserved.