K. Csaba
Posts: 4
Nickname: aerensiani
Registered: Aug, 2005
|
|
Re: File comparing algorithm
|
Posted: Aug 30, 2005 2:04 AM
|
|
Ok, i!ll try to explain again:
I want to make a program, that stores a file, then it compares that file to another(most likely a newer, modified file) and shows the changes made in the file. The way it shows is irrelevant. What i need is an algorithm that can make the comparison in a simple text file in an intelligent way(reading lines in won't do, if i insert a line everything will be different from then on), which works for ulimited length(won't make any difference if i insert 1 word or 10 pages) and it should find the remaining matching parts correctly(if the first word of a sentence matches, it doesn't mean it's the same sentence again). The algorithm is not that simple. I think we can assume, that the original file is matching again after 1 correct sentence(same as in the new file).
Any ideas?
|
|