Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to compare two data files.ie one file is having more data like 3900000 and another one is 3900..get similar data.that file format is like rectangular...
Posted
Updated 7-Apr-10 10:36am
v2

I guess you didn't read HOW-TO-ASK-A-QUESTION[^]

Are the datas in the files kind of sorted? I mean, if you open both and you go from the beggining, are the "similar" data more or less in order?
In other words, first common data is in line 1 of small file and in line X of big file, then second common data is in line 2 of small file and in line X+Y (placed after the previous) on the big file?

or can these data be without any order? This means 1 common data in line 1 of small file and in line X of second file and second common data in line 2 of small file and in line X-Y (placed before the previous) of the second?

Are the data in different lines? No different lines but separated with any special symbol? Are all lines with the same length? Which kind of data (numbers, strings, structs of mixed formats...)? What do you mean with "rectangular format"? Is like a excell map? Tabulated?


As you see there are a lot of things that can affect directly how the application should work. If you don't give more info, it is hard to help you.
 
Share this answer
 
v2
I think you should elaborate a bit your post (please modify the original post, do not add fake answers).
:)
 
Share this answer
 
You could draw a sequence of the colored rectangles
in your comparing view :) :

- green: the bytes are similar
- red: the bytes are different
- blue: the bytes are presented only in one file
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900