views:

126

answers:

4

I am developing a Application which takes two Files and output will be two files which will have only the contents which differs in both the files.

The application is developed using VC++ My Files are of Html type

Is there any library which will do the diff opereation between two files

+1  A: 

You can probably easily link diffutils into your code.

Zed
It might well be just as easy to shell out to a diff command line if the environment permits.
Andrew
He cannot link diffutils into his code unless he's building free software under GPL license.
Pavel Shved
+1  A: 

This depends on what types of files you are comparing. Are they text? HTML? Binaries?

Try searching this site (and Google) for 'diff', there are lots of questions and answers ranging from general how-to, to code examples, to full source code and 3rd party libraries.

jscharf
A: 

WinMerge is a Windows differencing and merging tool. It uses diffutils, written using VC++, and it's open source.

Cristian Adam
This was the most helpful tool and u can customize it according to ur need
subbu
A: 

You could start by looking at a couple of CodeProject articles that could be modified to generate the diff files you require:

1) Diff Tool

2) V Diff - A File Comparer with visual output

Alan