Thursday, May 7, 2015

How do i compare two strings and get the difference?

Does this mean, there are 3 situations?

  • The key exists only in only one of the files.
  • The key exists in both ini files and the values are equal
  • The key exists in both ini files but the values are different.

I wouldn't compare the line as one string. Instead, separate the key from the value. Then you can simply check these conditions.

If you also want to find similar key names, we still need to find the rules what is similarity and what are differences.


Armin

No comments:

Post a Comment