0

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

subbu
  • 3,229
  • 13
  • 49
  • 70

4 Answers4

1

You can probably easily link diffutils into your code.

Zed
  • 57,028
  • 9
  • 76
  • 100
  • It might well be just as easy to shell out to a diff command line if the environment permits. – Andrew Aug 29 '09 at 06:04
  • 1
    He cannot link diffutils into his code unless he's building free software under GPL license. – P Shved Aug 29 '09 at 09:33
1

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.

Community
  • 1
  • 1
jscharf
  • 5,829
  • 3
  • 24
  • 16
0

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

Cristian Adam
  • 4,749
  • 22
  • 19
0

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
  • 13,510
  • 9
  • 44
  • 50