Hello, I'm trying to find the difference between two large text files. I'm using GNU Diff and it works on small files, but not on large files that are above 1gb. Does anyone know of a solution for doing this via C# or of a utility that can compare two large text files and generate an output file that contains the data that is different
Here is a link to the GNU tool:
http://gnuwin32.sourceforge.net/packages/diffutils.htm
Here is my cmd line:
C:\Program Files\GnuWin32\bin>diff -ua c:\logs\file1.txt c:\logs\file2.txt > c:\logs\output.txt
Any suggestions

finding difference between two large text files
Miguel Carvajal
F.Costa
Hi,
Among a huge list of other tools a great program for programmers and non-programmers Total Commander has binary and text comparisons for files and directories.
http://www.ghisler.com/
Mark
Lukasz Glaz
...\Microsoft Visual Studio 8\Common7\Tools\Bin\WinDiff.Exe
Or from a command prompt there are a couple of programs to compare files, although I've never actually used them myself: FC and COMP.
Type FC / or COMP / from a cmd prompt to get more info
Disk4mat
Hi,
Here is how to use windiff.exe: http://support.microsoft.com/default.aspx/kb/159214
Thanks
George Homorozeanu
Hi,
We can make such a tools ourselves with C#, anyway.
To begin with how to read big files: http://samples.gotdotnet.com/quickstart/howto/doc/LargeReadWrite.aspx/
Then what left is comparison thing
Thank you