Compare two files with FileMerge
If you’re a developer and you haven’t found out about FileMerge yet, you are missing out on one of the more useful apps included within Apple’s XCode installation. FileMerge lets you select any two files and it will compare the two, pointing out any differences between the files. If you’re a developer you already know why this is wildly useful, as it makes tracking down major and minor code changes remarkably easy. Apparently FileMerge is a survivor from the days of NeXTStep, and once you see how useful it is, you’ll see why it was saved and bundled with XCode.
XCode can be installed from the CD/DVD’s included with your Mac, or downloaded for free from the Apple Developer site. Once XCode has been installed, FileMerge will be located at /Developer/Applications/Utilities/FileMerge

[ FileMerge screenshot from Schwehr.org ]

DiffMerge (by SourceGear) is way better. Just sayin’.
It is good but isn’t available on OS X you dim-wit toss pot, hence why FileMerge is still the best available for free on OS X. Twat.
[...] you’re looking for a more developer orientated version of file comparison, check out [...]
DiffMerge is available for Mac OSX, Windows, Linux, and is a fabulous tool. Much better than some FileMerge that’s hidden in a whole bunch of other stuff I don’t need (xcode).
http://www.sourcegear.com/diffmerge/downloads.php